{"action":"created","comment":{"url":"https://api.github.com/repos/magefree/mage/pulls/comments/87689838","pull_request_review_id":8295687,"id":87689838,"diff_hunk":"@@ -0,0 +1,130 @@\n+/*\n+ *  Copyright 2010 BetaSteward_at_googlemail.com. All rights reserved.\n+ *\n+ *  Redistribution and use in source and binary forms, with or without modification, are\n+ *  permitted provided that the following conditions are met:\n+ *\n+ *     1. Redistributions of source code must retain the above copyright notice, this list of\n+ *        conditions and the following disclaimer.\n+ *\n+ *     2. Redistributions in binary form must reproduce the above copyright notice, this list\n+ *        of conditions and the following disclaimer in the documentation and/or other materials\n+ *        provided with the distribution.\n+ *\n+ *  THIS SOFTWARE IS PROVIDED BY BetaSteward_at_googlemail.com ``AS IS'' AND ANY EXPRESS OR IMPLIED\n+ *  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND\n+ *  FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL BetaSteward_at_googlemail.com OR\n+ *  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n+ *  CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\n+ *  SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON\n+ *  ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\n+ *  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF\n+ *  ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n+ *\n+ *  The views and conclusions contained in the software and documentation are those of the\n+ *  authors and should not be interpreted as representing official policies, either expressed\n+ *  or implied, of BetaSteward_at_googlemail.com.\n+ */\n+package mage.cards.g;\n+\n+import java.util.UUID;\n+import mage.MageInt;\n+import mage.abilities.Ability;\n+import mage.abilities.common.AttacksTriggeredAbility;\n+import mage.abilities.common.SimpleActivatedAbility;\n+import mage.abilities.common.SimpleStaticAbility;\n+import mage.abilities.costs.common.TapSourceCost;\n+import mage.abilities.dynamicvalue.DynamicValue;\n+import mage.abilities.dynamicvalue.common.PermanentsOnBattlefieldCount;\n+import mage.abilities.effects.Effect;\n+import mage.abilities.effects.common.continuous.BecomesBasicLandTargetEffect;\n+import mage.abilities.effects.common.continuous.SetPowerToughnessSourceEffect;\n+import mage.cards.CardImpl;\n+import mage.cards.CardSetInfo;\n+import mage.constants.CardType;\n+import mage.constants.Duration;\n+import mage.constants.Zone;\n+import mage.filter.common.FilterControlledPermanent;\n+import mage.filter.common.FilterLandPermanent;\n+import mage.filter.predicate.mageobject.SubtypePredicate;\n+import mage.game.Game;\n+import mage.game.combat.CombatGroup;\n+import mage.game.permanent.Permanent;\n+import mage.target.common.TargetLandPermanent;\n+\n+/**\n+ *\n+ * @author anonymous\n+ */\n+public class GaeasLiege extends CardImpl {\n+    \n+    final static FilterControlledPermanent filterLands = new FilterControlledPermanent(\"Forests you control\");\n+\n+    static {\n+        filterLands.add(new SubtypePredicate(\"Forest\"));\n+    }\n+\n+    public GaeasLiege(UUID ownerId, CardSetInfo setInfo) {\n+        super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, \"{3}{G}{G}{G}\");\n+        \n+        this.subtype.add(\"Avatar\");\n+        this.power = new MageInt(0);\n+        this.toughness = new MageInt(0);\n+\n+        // As long as Gaea's Liege isn't attacking, its power and toughness are each equal to the number of Forests you control. As long as Gaea's Liege is attacking, its power and toughness are each equal to the number of Forests defending player controls.\n+        this.addAbility(new SimpleStaticAbility(Zone.ALL, new SetPowerToughnessSourceEffect(new PermanentsOnBattlefieldCount(filterLands), Duration.EndOfGame)));\n+        this.addAbility(new AttacksTriggeredAbility(new SetPowerToughnessSourceEffect(new DefendersForestCount(), Duration.EndOfCombat), false));\n+        // {tap}: Target land becomes a Forest until Gaea's Liege leaves the battlefield.\n+        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BecomesBasicLandTargetEffect(Duration.WhileOnBattlefield, \"Forest\"), new TapSourceCost());\n+        ability.addTarget(new TargetLandPermanent());","path":"Mage.Sets/src/mage/cards/g/GaeasLiege.java","position":79,"original_position":79,"commit_id":"abb8e58fa064e2d93c7376f0855dfee11e588b03","original_commit_id":"a1f3486890d4e2c11d203b103296cc9945a18ecf","user":{"login":"MTGfan","id":23157485,"avatar_url":"https://avatars.githubusercontent.com/u/23157485?v=3","gravatar_id":"","url":"https://api.github.com/users/MTGfan","html_url":"https://github.com/MTGfan","followers_url":"https://api.github.com/users/MTGfan/followers","following_url":"https://api.github.com/users/MTGfan/following{/other_user}","gists_url":"https://api.github.com/users/MTGfan/gists{/gist_id}","starred_url":"https://api.github.com/users/MTGfan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MTGfan/subscriptions","organizations_url":"https://api.github.com/users/MTGfan/orgs","repos_url":"https://api.github.com/users/MTGfan/repos","events_url":"https://api.github.com/users/MTGfan/events{/privacy}","received_events_url":"https://api.github.com/users/MTGfan/received_events","type":"User","site_admin":false},"body":"I'll have to test what happens when I get home from work (about 15 hours from now). Cast it, kill it, and the return it from graveyard to battlefield via an instant or something that does that.","created_at":"2016-11-12T09:29:48Z","updated_at":"2016-11-12T09:29:48Z","html_url":"https://github.com/magefree/mage/pull/2582#discussion_r87689838","pull_request_url":"https://api.github.com/repos/magefree/mage/pulls/2582","_links":{"self":{"href":"https://api.github.com/repos/magefree/mage/pulls/comments/87689838"},"html":{"href":"https://github.com/magefree/mage/pull/2582#discussion_r87689838"},"pull_request":{"href":"https://api.github.com/repos/magefree/mage/pulls/2582"}}},"pull_request":{"url":"https://api.github.com/repos/magefree/mage/pulls/2582","id":93276793,"html_url":"https://github.com/magefree/mage/pull/2582","diff_url":"https://github.com/magefree/mage/pull/2582.diff","patch_url":"https://github.com/magefree/mage/pull/2582.patch","issue_url":"https://api.github.com/repos/magefree/mage/issues/2582","number":2582,"state":"open","locked":false,"title":"Correction to Protean Hydra code","user":{"login":"MTGfan","id":23157485,"avatar_url":"https://avatars.githubusercontent.com/u/23157485?v=3","gravatar_id":"","url":"https://api.github.com/users/MTGfan","html_url":"https://github.com/MTGfan","followers_url":"https://api.github.com/users/MTGfan/followers","following_url":"https://api.github.com/users/MTGfan/following{/other_user}","gists_url":"https://api.github.com/users/MTGfan/gists{/gist_id}","starred_url":"https://api.github.com/users/MTGfan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MTGfan/subscriptions","organizations_url":"https://api.github.com/users/MTGfan/orgs","repos_url":"https://api.github.com/users/MTGfan/repos","events_url":"https://api.github.com/users/MTGfan/events{/privacy}","received_events_url":"https://api.github.com/users/MTGfan/received_events","type":"User","site_admin":false},"body":"Fixed removal of the +1/+1 counters regardless of if the damage is prevented per rulings for the card.","created_at":"2016-11-11T04:14:01Z","updated_at":"2016-11-12T09:29:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c533f9f5010b9aafc012fde8c944497c445a644d","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/magefree/mage/pulls/2582/commits","review_comments_url":"https://api.github.com/repos/magefree/mage/pulls/2582/comments","review_comment_url":"https://api.github.com/repos/magefree/mage/pulls/comments{/number}","comments_url":"https://api.github.com/repos/magefree/mage/issues/2582/comments","statuses_url":"https://api.github.com/repos/magefree/mage/statuses/abb8e58fa064e2d93c7376f0855dfee11e588b03","head":{"label":"MTGfan:master","ref":"master","sha":"abb8e58fa064e2d93c7376f0855dfee11e588b03","user":{"login":"MTGfan","id":23157485,"avatar_url":"https://avatars.githubusercontent.com/u/23157485?v=3","gravatar_id":"","url":"https://api.github.com/users/MTGfan","html_url":"https://github.com/MTGfan","followers_url":"https://api.github.com/users/MTGfan/followers","following_url":"https://api.github.com/users/MTGfan/following{/other_user}","gists_url":"https://api.github.com/users/MTGfan/gists{/gist_id}","starred_url":"https://api.github.com/users/MTGfan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MTGfan/subscriptions","organizations_url":"https://api.github.com/users/MTGfan/orgs","repos_url":"https://api.github.com/users/MTGfan/repos","events_url":"https://api.github.com/users/MTGfan/events{/privacy}","received_events_url":"https://api.github.com/users/MTGfan/received_events","type":"User","site_admin":false},"repo":{"id":73345824,"name":"mage","full_name":"MTGfan/mage","owner":{"login":"MTGfan","id":23157485,"avatar_url":"https://avatars.githubusercontent.com/u/23157485?v=3","gravatar_id":"","url":"https://api.github.com/users/MTGfan","html_url":"https://github.com/MTGfan","followers_url":"https://api.github.com/users/MTGfan/followers","following_url":"https://api.github.com/users/MTGfan/following{/other_user}","gists_url":"https://api.github.com/users/MTGfan/gists{/gist_id}","starred_url":"https://api.github.com/users/MTGfan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MTGfan/subscriptions","organizations_url":"https://api.github.com/users/MTGfan/orgs","repos_url":"https://api.github.com/users/MTGfan/repos","events_url":"https://api.github.com/users/MTGfan/events{/privacy}","received_events_url":"https://api.github.com/users/MTGfan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MTGfan/mage","description":"Magic Another Game Engine","fork":true,"url":"https://api.github.com/repos/MTGfan/mage","forks_url":"https://api.github.com/repos/MTGfan/mage/forks","keys_url":"https://api.github.com/repos/MTGfan/mage/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MTGfan/mage/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MTGfan/mage/teams","hooks_url":"https://api.github.com/repos/MTGfan/mage/hooks","issue_events_url":"https://api.github.com/repos/MTGfan/mage/issues/events{/number}","events_url":"https://api.github.com/repos/MTGfan/mage/events","assignees_url":"https://api.github.com/repos/MTGfan/mage/assignees{/user}","branches_url":"https://api.github.com/repos/MTGfan/mage/branches{/branch}","tags_url":"https://api.github.com/repos/MTGfan/mage/tags","blobs_url":"https://api.github.com/repos/MTGfan/mage/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MTGfan/mage/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MTGfan/mage/git/refs{/sha}","trees_url":"https://api.github.com/repos/MTGfan/mage/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MTGfan/mage/statuses/{sha}","languages_url":"https://api.github.com/repos/MTGfan/mage/languages","stargazers_url":"https://api.github.com/repos/MTGfan/mage/stargazers","contributors_url":"https://api.github.com/repos/MTGfan/mage/contributors","subscribers_url":"https://api.github.com/repos/MTGfan/mage/subscribers","subscription_url":"https://api.github.com/repos/MTGfan/mage/subscription","commits_url":"https://api.github.com/repos/MTGfan/mage/commits{/sha}","git_commits_url":"https://api.github.com/repos/MTGfan/mage/git/commits{/sha}","comments_url":"https://api.github.com/repos/MTGfan/mage/comments{/number}","issue_comment_url":"https://api.github.com/repos/MTGfan/mage/issues/comments{/number}","contents_url":"https://api.github.com/repos/MTGfan/mage/contents/{+path}","compare_url":"https://api.github.com/repos/MTGfan/mage/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MTGfan/mage/merges","archive_url":"https://api.github.com/repos/MTGfan/mage/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MTGfan/mage/downloads","issues_url":"https://api.github.com/repos/MTGfan/mage/issues{/number}","pulls_url":"https://api.github.com/repos/MTGfan/mage/pulls{/number}","milestones_url":"https://api.github.com/repos/MTGfan/mage/milestones{/number}","notifications_url":"https://api.github.com/repos/MTGfan/mage/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MTGfan/mage/labels{/name}","releases_url":"https://api.github.com/repos/MTGfan/mage/releases{/id}","deployments_url":"https://api.github.com/repos/MTGfan/mage/deployments","created_at":"2016-11-10T03:59:54Z","updated_at":"2016-11-10T04:00:41Z","pushed_at":"2016-11-12T00:27:18Z","git_url":"git://github.com/MTGfan/mage.git","ssh_url":"git@github.com:MTGfan/mage.git","clone_url":"https://github.com/MTGfan/mage.git","svn_url":"https://github.com/MTGfan/mage","homepage":"http://xmage.de","size":454266,"stargazers_count":0,"watchers_count":0,"language":"Java","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":"magefree:master","ref":"master","sha":"17d77963251056aa3738be6ec8a9ab3a2241cea6","user":{"login":"magefree","id":1705456,"avatar_url":"https://avatars.githubusercontent.com/u/1705456?v=3","gravatar_id":"","url":"https://api.github.com/users/magefree","html_url":"https://github.com/magefree","followers_url":"https://api.github.com/users/magefree/followers","following_url":"https://api.github.com/users/magefree/following{/other_user}","gists_url":"https://api.github.com/users/magefree/gists{/gist_id}","starred_url":"https://api.github.com/users/magefree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/magefree/subscriptions","organizations_url":"https://api.github.com/users/magefree/orgs","repos_url":"https://api.github.com/users/magefree/repos","events_url":"https://api.github.com/users/magefree/events{/privacy}","received_events_url":"https://api.github.com/users/magefree/received_events","type":"Organization","site_admin":false},"repo":{"id":4158448,"name":"mage","full_name":"magefree/mage","owner":{"login":"magefree","id":1705456,"avatar_url":"https://avatars.githubusercontent.com/u/1705456?v=3","gravatar_id":"","url":"https://api.github.com/users/magefree","html_url":"https://github.com/magefree","followers_url":"https://api.github.com/users/magefree/followers","following_url":"https://api.github.com/users/magefree/following{/other_user}","gists_url":"https://api.github.com/users/magefree/gists{/gist_id}","starred_url":"https://api.github.com/users/magefree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/magefree/subscriptions","organizations_url":"https://api.github.com/users/magefree/orgs","repos_url":"https://api.github.com/users/magefree/repos","events_url":"https://api.github.com/users/magefree/events{/privacy}","received_events_url":"https://api.github.com/users/magefree/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/magefree/mage","description":"Magic Another Game Engine","fork":false,"url":"https://api.github.com/repos/magefree/mage","forks_url":"https://api.github.com/repos/magefree/mage/forks","keys_url":"https://api.github.com/repos/magefree/mage/keys{/key_id}","collaborators_url":"https://api.github.com/repos/magefree/mage/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/magefree/mage/teams","hooks_url":"https://api.github.com/repos/magefree/mage/hooks","issue_events_url":"https://api.github.com/repos/magefree/mage/issues/events{/number}","events_url":"https://api.github.com/repos/magefree/mage/events","assignees_url":"https://api.github.com/repos/magefree/mage/assignees{/user}","branches_url":"https://api.github.com/repos/magefree/mage/branches{/branch}","tags_url":"https://api.github.com/repos/magefree/mage/tags","blobs_url":"https://api.github.com/repos/magefree/mage/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/magefree/mage/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/magefree/mage/git/refs{/sha}","trees_url":"https://api.github.com/repos/magefree/mage/git/trees{/sha}","statuses_url":"https://api.github.com/repos/magefree/mage/statuses/{sha}","languages_url":"https://api.github.com/repos/magefree/mage/languages","stargazers_url":"https://api.github.com/repos/magefree/mage/stargazers","contributors_url":"https://api.github.com/repos/magefree/mage/contributors","subscribers_url":"https://api.github.com/repos/magefree/mage/subscribers","subscription_url":"https://api.github.com/repos/magefree/mage/subscription","commits_url":"https://api.github.com/repos/magefree/mage/commits{/sha}","git_commits_url":"https://api.github.com/repos/magefree/mage/git/commits{/sha}","comments_url":"https://api.github.com/repos/magefree/mage/comments{/number}","issue_comment_url":"https://api.github.com/repos/magefree/mage/issues/comments{/number}","contents_url":"https://api.github.com/repos/magefree/mage/contents/{+path}","compare_url":"https://api.github.com/repos/magefree/mage/compare/{base}...{head}","merges_url":"https://api.github.com/repos/magefree/mage/merges","archive_url":"https://api.github.com/repos/magefree/mage/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/magefree/mage/downloads","issues_url":"https://api.github.com/repos/magefree/mage/issues{/number}","pulls_url":"https://api.github.com/repos/magefree/mage/pulls{/number}","milestones_url":"https://api.github.com/repos/magefree/mage/milestones{/number}","notifications_url":"https://api.github.com/repos/magefree/mage/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/magefree/mage/labels{/name}","releases_url":"https://api.github.com/repos/magefree/mage/releases{/id}","deployments_url":"https://api.github.com/repos/magefree/mage/deployments","created_at":"2012-04-27T13:18:34Z","updated_at":"2016-11-07T08:05:35Z","pushed_at":"2016-11-12T08:38:03Z","git_url":"git://github.com/magefree/mage.git","ssh_url":"git@github.com:magefree/mage.git","clone_url":"https://github.com/magefree/mage.git","svn_url":"https://github.com/magefree/mage","homepage":"http://xmage.de","size":462944,"stargazers_count":388,"watchers_count":388,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":266,"mirror_url":null,"open_issues_count":410,"forks":266,"open_issues":410,"watchers":388,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/magefree/mage/pulls/2582"},"html":{"href":"https://github.com/magefree/mage/pull/2582"},"issue":{"href":"https://api.github.com/repos/magefree/mage/issues/2582"},"comments":{"href":"https://api.github.com/repos/magefree/mage/issues/2582/comments"},"review_comments":{"href":"https://api.github.com/repos/magefree/mage/pulls/2582/comments"},"review_comment":{"href":"https://api.github.com/repos/magefree/mage/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/magefree/mage/pulls/2582/commits"},"statuses":{"href":"https://api.github.com/repos/magefree/mage/statuses/abb8e58fa064e2d93c7376f0855dfee11e588b03"}}}}
{"actor":{"display_login":"MTGfan"}}