replace groovy code with ability in card script

master
melvin 2013-10-20 14:04:37 +08:00
parent 69ea400adf
commit 59962ece5e
2 changed files with 1 additions and 22 deletions

View File

@ -1,21 +0,0 @@
[
new MagicSpellCardEvent() {
@Override
public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
return new MagicEvent(
cardOnStack,
this,
"Creatures your opponent controls get -2/-0 until end of turn."
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
final MagicPlayer opponent=event.getPlayer().getOpponent();
final Collection<MagicPermanent> targets=
game.filterPermanents(opponent,MagicTargetFilter.TARGET_CREATURE_YOU_CONTROL);
for (final MagicPermanent target : targets) {
game.doAction(new MagicChangeTurnPTAction(target,-2,0));
}
}
}
]

View File

@ -5,5 +5,5 @@ value=2.569
rarity=C rarity=C
type=Instant type=Instant
cost={1}{U} cost={1}{U}
effect=Creatures your opponents control get -2/-0 until end of turn.
timing=removal timing=removal
requires_groovy_code