magarena/release/Magarena/scripts/Flame_Kin_Zealot.groovy

27 lines
992 B
Groovy

[
new MagicWhenComesIntoPlayTrigger() {
@Override
public MagicEvent executeTrigger(
final MagicGame game,
final MagicPermanent permanent,
final MagicPayedCost payedCost) {
return new MagicEvent(
permanent,
this,
"Creatures PN controls get " +
"+1/+1 and gain haste until end of turn."
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
final Collection<MagicPermanent> targets = game.filterPermanents(
event.getPlayer(),
MagicTargetFilter.TARGET_CREATURE_YOU_CONTROL);
for (final MagicPermanent creature : targets) {
game.doAction(new MagicChangeTurnPTAction(creature,1,1));
game.doAction(new MagicGainAbilityAction(creature,MagicAbility.Haste));
}
}
}
]