replace groovy script with ability in card script

master
melvin 2013-08-26 13:22:47 +08:00
parent 17a88b4c8a
commit d6765b8548
3 changed files with 2 additions and 11 deletions

View File

@ -1,10 +0,0 @@
[
new MagicStatic(
MagicLayer.Ability,
MagicTargetFilter.TARGET_CREATURE) {
@Override
public void modAbilityFlags(final MagicPermanent source,final MagicPermanent permanent,final Set<MagicAbility> flags) {
flags.add(MagicAbility.Haste);
}
}
]

View File

@ -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

View File

@ -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);