magarena/release/Magarena/scripts/Burst_of_Speed.groovy

21 lines
775 B
Groovy
Raw Normal View History

2013-04-12 19:58:51 -07:00
[
new MagicSpellCardEvent() {
@Override
public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
return new MagicEvent(
cardOnStack,
this,
"Creatures PN controls gain haste until end of turn."
);
}
@Override
2013-06-15 07:01:56 -07:00
public void executeEvent(final MagicGame game, final MagicEvent event) {
2013-04-12 19:58:51 -07:00
final Collection<MagicPermanent> targets =
game.filterPermanents(event.getPlayer(),MagicTargetFilter.TARGET_CREATURE_YOU_CONTROL);
for (final MagicPermanent creature : targets) {
game.doAction(new MagicGainAbilityAction(creature,MagicAbility.Haste));
2013-04-12 19:58:51 -07:00
}
}
}
]