From d6765b8548ff935a29982d9ccbaed329eda02d0e Mon Sep 17 00:00:00 2001 From: melvin Date: Mon, 26 Aug 2013 13:22:47 +0800 Subject: [PATCH] replace groovy script with ability in card script --- release/Magarena/scripts/Mass_Hysteria.groovy | 10 ---------- release/Magarena/scripts/Mass_Hysteria.txt | 2 +- src/magic/model/target/MagicTargetFilterFactory.java | 1 + 3 files changed, 2 insertions(+), 11 deletions(-) delete mode 100644 release/Magarena/scripts/Mass_Hysteria.groovy diff --git a/release/Magarena/scripts/Mass_Hysteria.groovy b/release/Magarena/scripts/Mass_Hysteria.groovy deleted file mode 100644 index 07b43d4740..0000000000 --- a/release/Magarena/scripts/Mass_Hysteria.groovy +++ /dev/null @@ -1,10 +0,0 @@ -[ - new MagicStatic( - MagicLayer.Ability, - MagicTargetFilter.TARGET_CREATURE) { - @Override - public void modAbilityFlags(final MagicPermanent source,final MagicPermanent permanent,final Set flags) { - flags.add(MagicAbility.Haste); - } - } -] diff --git a/release/Magarena/scripts/Mass_Hysteria.txt b/release/Magarena/scripts/Mass_Hysteria.txt index f331ceb41b..0e0db9bbd7 100644 --- a/release/Magarena/scripts/Mass_Hysteria.txt +++ b/release/Magarena/scripts/Mass_Hysteria.txt @@ -5,5 +5,5 @@ value=3.940 rarity=R type=Enchantment cost={R} +ability=lord ability all creatures have haste timing=enchantment -requires_groovy_code diff --git a/src/magic/model/target/MagicTargetFilterFactory.java b/src/magic/model/target/MagicTargetFilterFactory.java index 0255ac0b17..028b8c756f 100644 --- a/src/magic/model/target/MagicTargetFilterFactory.java +++ b/src/magic/model/target/MagicTargetFilterFactory.java @@ -17,6 +17,7 @@ public class MagicTargetFilterFactory { factory.put("sliver creatures you control", TARGET_SLIVER_YOU_CONTROL); factory.put("dragon creatures you control", TARGET_DRAGON_YOU_CONTROL); factory.put("all sliver creatures", TARGET_SLIVER); + factory.put("all creatures", TARGET_CREATURE); factory.put("goblin creatures", TARGET_GOBLIN_CREATURE); factory.put("black creatures", TARGET_BLACK_CREATURE); factory.put("white creatures you control", TARGET_WHITE_CREATURE_YOU_CONTROL);