{"action":"created","comment":{"url":"https://api.github.com/repos/Cockatrice/Cockatrice/pulls/comments/32886366","id":32886366,"diff_hunk":"@@ -110,7 +110,7 @@ void CardItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option,\n         QStringList ptDbSplit = db->getCard(name)->getPowTough().split(\"/\");\n         QStringList ptSplit = pt.split(\"/\");\n         \n-        if (ptDbSplit.at(0) != ptSplit.at(0) || ptDbSplit.at(1) != ptSplit.at(1))\n+        if ((ptDbSplit.at(0) != ptSplit.at(0) || ptDbSplit.at(1) != ptSplit.at(1)) && !getFaceDown())","path":"cockatrice/src/carditem.cpp","position":5,"original_position":5,"commit_id":"435e11766d95c77820349f78a062634d232561cb","original_commit_id":"435e11766d95c77820349f78a062634d232561cb","user":{"login":"ZeldaZach","id":7460172,"avatar_url":"https://avatars.githubusercontent.com/u/7460172?v=3","gravatar_id":"","url":"https://api.github.com/users/ZeldaZach","html_url":"https://github.com/ZeldaZach","followers_url":"https://api.github.com/users/ZeldaZach/followers","following_url":"https://api.github.com/users/ZeldaZach/following{/other_user}","gists_url":"https://api.github.com/users/ZeldaZach/gists{/gist_id}","starred_url":"https://api.github.com/users/ZeldaZach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZeldaZach/subscriptions","organizations_url":"https://api.github.com/users/ZeldaZach/orgs","repos_url":"https://api.github.com/users/ZeldaZach/repos","events_url":"https://api.github.com/users/ZeldaZach/events{/privacy}","received_events_url":"https://api.github.com/users/ZeldaZach/received_events","type":"User","site_admin":false},"body":"I was thinking of making morphs white, but the orange is fine too. Changed :)","created_at":"2015-06-20T17:40:03Z","updated_at":"2015-06-20T17:40:03Z","html_url":"https://github.com/Cockatrice/Cockatrice/pull/1152#discussion_r32886366","pull_request_url":"https://api.github.com/repos/Cockatrice/Cockatrice/pulls/1152","_links":{"self":{"href":"https://api.github.com/repos/Cockatrice/Cockatrice/pulls/comments/32886366"},"html":{"href":"https://github.com/Cockatrice/Cockatrice/pull/1152#discussion_r32886366"},"pull_request":{"href":"https://api.github.com/repos/Cockatrice/Cockatrice/pulls/1152"}}},"pull_request":{"url":"https://api.github.com/repos/Cockatrice/Cockatrice/pulls/1152","id":38070683,"html_url":"https://github.com/Cockatrice/Cockatrice/pull/1152","diff_url":"https://github.com/Cockatrice/Cockatrice/pull/1152.diff","patch_url":"https://github.com/Cockatrice/Cockatrice/pull/1152.patch","issue_url":"https://api.github.com/repos/Cockatrice/Cockatrice/issues/1152","number":1152,"state":"open","locked":false,"title":"Stop P/T Color of Morphs","user":{"login":"ZeldaZach","id":7460172,"avatar_url":"https://avatars.githubusercontent.com/u/7460172?v=3","gravatar_id":"","url":"https://api.github.com/users/ZeldaZach","html_url":"https://github.com/ZeldaZach","followers_url":"https://api.github.com/users/ZeldaZach/followers","following_url":"https://api.github.com/users/ZeldaZach/following{/other_user}","gists_url":"https://api.github.com/users/ZeldaZach/gists{/gist_id}","starred_url":"https://api.github.com/users/ZeldaZach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZeldaZach/subscriptions","organizations_url":"https://api.github.com/users/ZeldaZach/orgs","repos_url":"https://api.github.com/users/ZeldaZach/repos","events_url":"https://api.github.com/users/ZeldaZach/events{/privacy}","received_events_url":"https://api.github.com/users/ZeldaZach/received_events","type":"User","site_admin":false},"body":"This fixes #1126.\r\n\r\nBy including the `getFaceDown()` function from the `abstractcarditem.h` header, we can determine if the card that's about to have it's P/T changed is face up or face down. If the card is face down, we will write the text in white (the default color) no matter what the P/T of the creature/card really is. This is to prevent information from being leaked, such as, in the past, if you have a 2/2 that you morphed, the text would be white as the system would see it matching the database.","created_at":"2015-06-19T01:51:21Z","updated_at":"2015-06-20T17:40:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4e35d90ce038addc65cc6649f8ba1f79378f8c4f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Cockatrice/Cockatrice/pulls/1152/commits","review_comments_url":"https://api.github.com/repos/Cockatrice/Cockatrice/pulls/1152/comments","review_comment_url":"https://api.github.com/repos/Cockatrice/Cockatrice/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Cockatrice/Cockatrice/issues/1152/comments","statuses_url":"https://api.github.com/repos/Cockatrice/Cockatrice/statuses/435e11766d95c77820349f78a062634d232561cb","head":{"label":"ZeldaZach:fix_1126","ref":"fix_1126","sha":"435e11766d95c77820349f78a062634d232561cb","user":{"login":"ZeldaZach","id":7460172,"avatar_url":"https://avatars.githubusercontent.com/u/7460172?v=3","gravatar_id":"","url":"https://api.github.com/users/ZeldaZach","html_url":"https://github.com/ZeldaZach","followers_url":"https://api.github.com/users/ZeldaZach/followers","following_url":"https://api.github.com/users/ZeldaZach/following{/other_user}","gists_url":"https://api.github.com/users/ZeldaZach/gists{/gist_id}","starred_url":"https://api.github.com/users/ZeldaZach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZeldaZach/subscriptions","organizations_url":"https://api.github.com/users/ZeldaZach/orgs","repos_url":"https://api.github.com/users/ZeldaZach/repos","events_url":"https://api.github.com/users/ZeldaZach/events{/privacy}","received_events_url":"https://api.github.com/users/ZeldaZach/received_events","type":"User","site_admin":false},"repo":{"id":30373399,"name":"Cockatrice","full_name":"ZeldaZach/Cockatrice","owner":{"login":"ZeldaZach","id":7460172,"avatar_url":"https://avatars.githubusercontent.com/u/7460172?v=3","gravatar_id":"","url":"https://api.github.com/users/ZeldaZach","html_url":"https://github.com/ZeldaZach","followers_url":"https://api.github.com/users/ZeldaZach/followers","following_url":"https://api.github.com/users/ZeldaZach/following{/other_user}","gists_url":"https://api.github.com/users/ZeldaZach/gists{/gist_id}","starred_url":"https://api.github.com/users/ZeldaZach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZeldaZach/subscriptions","organizations_url":"https://api.github.com/users/ZeldaZach/orgs","repos_url":"https://api.github.com/users/ZeldaZach/repos","events_url":"https://api.github.com/users/ZeldaZach/events{/privacy}","received_events_url":"https://api.github.com/users/ZeldaZach/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ZeldaZach/Cockatrice","description":"A cross-platform virtual tabletop for multiplayer card games","fork":true,"url":"https://api.github.com/repos/ZeldaZach/Cockatrice","forks_url":"https://api.github.com/repos/ZeldaZach/Cockatrice/forks","keys_url":"https://api.github.com/repos/ZeldaZach/Cockatrice/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ZeldaZach/Cockatrice/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ZeldaZach/Cockatrice/teams","hooks_url":"https://api.github.com/repos/ZeldaZach/Cockatrice/hooks","issue_events_url":"https://api.github.com/repos/ZeldaZach/Cockatrice/issues/events{/number}","events_url":"https://api.github.com/repos/ZeldaZach/Cockatrice/events","assignees_url":"https://api.github.com/repos/ZeldaZach/Cockatrice/assignees{/user}","branches_url":"https://api.github.com/repos/ZeldaZach/Cockatrice/branches{/branch}","tags_url":"https://api.github.com/repos/ZeldaZach/Cockatrice/tags","blobs_url":"https://api.github.com/repos/ZeldaZach/Cockatrice/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ZeldaZach/Cockatrice/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ZeldaZach/Cockatrice/git/refs{/sha}","trees_url":"https://api.github.com/repos/ZeldaZach/Cockatrice/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ZeldaZach/Cockatrice/statuses/{sha}","languages_url":"https://api.github.com/repos/ZeldaZach/Cockatrice/languages","stargazers_url":"https://api.github.com/repos/ZeldaZach/Cockatrice/stargazers","contributors_url":"https://api.github.com/repos/ZeldaZach/Cockatrice/contributors","subscribers_url":"https://api.github.com/repos/ZeldaZach/Cockatrice/subscribers","subscription_url":"https://api.github.com/repos/ZeldaZach/Cockatrice/subscription","commits_url":"https://api.github.com/repos/ZeldaZach/Cockatrice/commits{/sha}","git_commits_url":"https://api.github.com/repos/ZeldaZach/Cockatrice/git/commits{/sha}","comments_url":"https://api.github.com/repos/ZeldaZach/Cockatrice/comments{/number}","issue_comment_url":"https://api.github.com/repos/ZeldaZach/Cockatrice/issues/comments{/number}","contents_url":"https://api.github.com/repos/ZeldaZach/Cockatrice/contents/{+path}","compare_url":"https://api.github.com/repos/ZeldaZach/Cockatrice/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ZeldaZach/Cockatrice/merges","archive_url":"https://api.github.com/repos/ZeldaZach/Cockatrice/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ZeldaZach/Cockatrice/downloads","issues_url":"https://api.github.com/repos/ZeldaZach/Cockatrice/issues{/number}","pulls_url":"https://api.github.com/repos/ZeldaZach/Cockatrice/pulls{/number}","milestones_url":"https://api.github.com/repos/ZeldaZach/Cockatrice/milestones{/number}","notifications_url":"https://api.github.com/repos/ZeldaZach/Cockatrice/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ZeldaZach/Cockatrice/labels{/name}","releases_url":"https://api.github.com/repos/ZeldaZach/Cockatrice/releases{/id}","created_at":"2015-02-05T19:16:22Z","updated_at":"2015-04-27T20:24:40Z","pushed_at":"2015-06-20T03:32:50Z","git_url":"git://github.com/ZeldaZach/Cockatrice.git","ssh_url":"git@github.com:ZeldaZach/Cockatrice.git","clone_url":"https://github.com/ZeldaZach/Cockatrice.git","svn_url":"https://github.com/ZeldaZach/Cockatrice","homepage":"","size":29405,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Cockatrice:master","ref":"master","sha":"e581ef77e53839933fc330fa69e9255d7f2b6d01","user":{"login":"Cockatrice","id":9746249,"avatar_url":"https://avatars.githubusercontent.com/u/9746249?v=3","gravatar_id":"","url":"https://api.github.com/users/Cockatrice","html_url":"https://github.com/Cockatrice","followers_url":"https://api.github.com/users/Cockatrice/followers","following_url":"https://api.github.com/users/Cockatrice/following{/other_user}","gists_url":"https://api.github.com/users/Cockatrice/gists{/gist_id}","starred_url":"https://api.github.com/users/Cockatrice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cockatrice/subscriptions","organizations_url":"https://api.github.com/users/Cockatrice/orgs","repos_url":"https://api.github.com/users/Cockatrice/repos","events_url":"https://api.github.com/users/Cockatrice/events{/privacy}","received_events_url":"https://api.github.com/users/Cockatrice/received_events","type":"Organization","site_admin":false},"repo":{"id":2907031,"name":"Cockatrice","full_name":"Cockatrice/Cockatrice","owner":{"login":"Cockatrice","id":9746249,"avatar_url":"https://avatars.githubusercontent.com/u/9746249?v=3","gravatar_id":"","url":"https://api.github.com/users/Cockatrice","html_url":"https://github.com/Cockatrice","followers_url":"https://api.github.com/users/Cockatrice/followers","following_url":"https://api.github.com/users/Cockatrice/following{/other_user}","gists_url":"https://api.github.com/users/Cockatrice/gists{/gist_id}","starred_url":"https://api.github.com/users/Cockatrice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cockatrice/subscriptions","organizations_url":"https://api.github.com/users/Cockatrice/orgs","repos_url":"https://api.github.com/users/Cockatrice/repos","events_url":"https://api.github.com/users/Cockatrice/events{/privacy}","received_events_url":"https://api.github.com/users/Cockatrice/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Cockatrice/Cockatrice","description":"A cross-platform virtual tabletop for multiplayer card games","fork":false,"url":"https://api.github.com/repos/Cockatrice/Cockatrice","forks_url":"https://api.github.com/repos/Cockatrice/Cockatrice/forks","keys_url":"https://api.github.com/repos/Cockatrice/Cockatrice/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Cockatrice/Cockatrice/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Cockatrice/Cockatrice/teams","hooks_url":"https://api.github.com/repos/Cockatrice/Cockatrice/hooks","issue_events_url":"https://api.github.com/repos/Cockatrice/Cockatrice/issues/events{/number}","events_url":"https://api.github.com/repos/Cockatrice/Cockatrice/events","assignees_url":"https://api.github.com/repos/Cockatrice/Cockatrice/assignees{/user}","branches_url":"https://api.github.com/repos/Cockatrice/Cockatrice/branches{/branch}","tags_url":"https://api.github.com/repos/Cockatrice/Cockatrice/tags","blobs_url":"https://api.github.com/repos/Cockatrice/Cockatrice/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Cockatrice/Cockatrice/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Cockatrice/Cockatrice/git/refs{/sha}","trees_url":"https://api.github.com/repos/Cockatrice/Cockatrice/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Cockatrice/Cockatrice/statuses/{sha}","languages_url":"https://api.github.com/repos/Cockatrice/Cockatrice/languages","stargazers_url":"https://api.github.com/repos/Cockatrice/Cockatrice/stargazers","contributors_url":"https://api.github.com/repos/Cockatrice/Cockatrice/contributors","subscribers_url":"https://api.github.com/repos/Cockatrice/Cockatrice/subscribers","subscription_url":"https://api.github.com/repos/Cockatrice/Cockatrice/subscription","commits_url":"https://api.github.com/repos/Cockatrice/Cockatrice/commits{/sha}","git_commits_url":"https://api.github.com/repos/Cockatrice/Cockatrice/git/commits{/sha}","comments_url":"https://api.github.com/repos/Cockatrice/Cockatrice/comments{/number}","issue_comment_url":"https://api.github.com/repos/Cockatrice/Cockatrice/issues/comments{/number}","contents_url":"https://api.github.com/repos/Cockatrice/Cockatrice/contents/{+path}","compare_url":"https://api.github.com/repos/Cockatrice/Cockatrice/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Cockatrice/Cockatrice/merges","archive_url":"https://api.github.com/repos/Cockatrice/Cockatrice/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Cockatrice/Cockatrice/downloads","issues_url":"https://api.github.com/repos/Cockatrice/Cockatrice/issues{/number}","pulls_url":"https://api.github.com/repos/Cockatrice/Cockatrice/pulls{/number}","milestones_url":"https://api.github.com/repos/Cockatrice/Cockatrice/milestones{/number}","notifications_url":"https://api.github.com/repos/Cockatrice/Cockatrice/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Cockatrice/Cockatrice/labels{/name}","releases_url":"https://api.github.com/repos/Cockatrice/Cockatrice/releases{/id}","created_at":"2011-12-03T20:58:09Z","updated_at":"2015-06-20T11:58:53Z","pushed_at":"2015-06-20T03:32:51Z","git_url":"git://github.com/Cockatrice/Cockatrice.git","ssh_url":"git@github.com:Cockatrice/Cockatrice.git","clone_url":"https://github.com/Cockatrice/Cockatrice.git","svn_url":"https://github.com/Cockatrice/Cockatrice","homepage":"","size":38484,"stargazers_count":266,"watchers_count":266,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":176,"mirror_url":null,"open_issues_count":234,"forks":176,"open_issues":234,"watchers":266,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Cockatrice/Cockatrice/pulls/1152"},"html":{"href":"https://github.com/Cockatrice/Cockatrice/pull/1152"},"issue":{"href":"https://api.github.com/repos/Cockatrice/Cockatrice/issues/1152"},"comments":{"href":"https://api.github.com/repos/Cockatrice/Cockatrice/issues/1152/comments"},"review_comments":{"href":"https://api.github.com/repos/Cockatrice/Cockatrice/pulls/1152/comments"},"review_comment":{"href":"https://api.github.com/repos/Cockatrice/Cockatrice/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Cockatrice/Cockatrice/pulls/1152/commits"},"statuses":{"href":"https://api.github.com/repos/Cockatrice/Cockatrice/statuses/435e11766d95c77820349f78a062634d232561cb"}}}}