{"action":"closed","issue":{"url":"https://api.github.com/repos/magarena/magarena/issues/951","repository_url":"https://api.github.com/repos/magarena/magarena","labels_url":"https://api.github.com/repos/magarena/magarena/issues/951/labels{/name}","comments_url":"https://api.github.com/repos/magarena/magarena/issues/951/comments","events_url":"https://api.github.com/repos/magarena/magarena/issues/951/events","html_url":"https://github.com/magarena/magarena/issues/951","id":183500662,"number":951,"title":"Moonmist (New Card)","user":{"login":"kelsioboy","id":21207418,"avatar_url":"https://avatars.githubusercontent.com/u/21207418?v=3","gravatar_id":"","url":"https://api.github.com/users/kelsioboy","html_url":"https://github.com/kelsioboy","followers_url":"https://api.github.com/users/kelsioboy/followers","following_url":"https://api.github.com/users/kelsioboy/following{/other_user}","gists_url":"https://api.github.com/users/kelsioboy/gists{/gist_id}","starred_url":"https://api.github.com/users/kelsioboy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kelsioboy/subscriptions","organizations_url":"https://api.github.com/users/kelsioboy/orgs","repos_url":"https://api.github.com/users/kelsioboy/repos","events_url":"https://api.github.com/users/kelsioboy/events{/privacy}","received_events_url":"https://api.github.com/users/kelsioboy/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/magarena/magarena/labels/new%20card","name":"new card","color":"fef2c0"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-17T19:09:06Z","updated_at":"2016-10-18T12:56:16Z","closed_at":"2016-10-18T12:56:16Z","body":"name=Moonmist\r\nimage=http://magiccards.info/scans/en/isd/195.jpg\r\nvalue=3.880\r\nrarity=C\r\ntype=Instant\r\ncost={1}{G}\r\ntiming=removal\r\nrequires_groovy_code\r\noracle=Transform all Humans. Prevent all combat damage that would be dealt this turn by creatures other than Werewolves and Wolves.\r\n\r\ndef HUMAN_CREATURES = new MagicPermanentFilterImpl() {\r\n    public boolean accept(final MagicSource source,final MagicPlayer player,final MagicPermanent target) {\r\n        return target.hasSubType(MagicSubType.Human) && target.isCreature();\r\n\r\n    }\r\n};\r\ndef NONWEREWOLF_CREATURES = new MagicPermanentFilterImpl() {\r\n    public boolean accept(final MagicSource source,final MagicPlayer player,final MagicPermanent target) {\r\n        return !target.hasSubType(MagicSubType.Werewolf) && !target.hasSubType(MagicSubType.Wolf) && target.isCreature();\r\n\r\n    }\r\n};\r\n\r\n[    new MagicSpellCardEvent() {\r\n        @Override\r\n        public MagicEvent getEvent(final MagicCardOnStack cardOnStack, final MagicPayedCost payedCost) {\r\n            return new MagicEvent(\r\n                cardOnStack,\r\n                this,\r\n               \"Transform all Humans.\"+\" Prevent all combat damage that would be dealt this turn by creatures other than Werewolves and Wolves.\"\r\n            );\r\n        }\r\n\r\n        @Override\r\n        public void executeEvent(final MagicGame game, final MagicEvent event) {\r\n            HUMAN_CREATURES.filter(event) each {\r\n                game.doAction(new TransformAction(it\r\n                    ));\r\n            }\r\n            NONWEREWOLF_CREATURES.filter(event) each {\r\n                game.doAction(new AddTurnTriggerAction(\r\n                    it,\r\n                    PreventDamageTrigger.PreventCombatDamageDealtBy\r\n                ));\r\n            }\r\n        }\r\n    }\r\n]\r\n\r\n"}}
{"actor":{"display_login":"melvinzhang"}}