28 lines
1.0 KiB
Groovy
28 lines
1.0 KiB
Groovy
[
|
|
new MagicWhenComesIntoPlayTrigger() {
|
|
@Override
|
|
public MagicEvent executeTrigger(
|
|
final MagicGame game,
|
|
final MagicPermanent permanent,
|
|
final MagicPlayer player) {
|
|
return permanent.isKicked() ?
|
|
new MagicEvent(
|
|
permanent,
|
|
this,
|
|
"Creatures PN controls get +1/+0 and gain haste until end of turn."
|
|
):
|
|
MagicEvent.NONE;
|
|
}
|
|
|
|
@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,0));
|
|
game.doAction(new MagicSetAbilityAction(creature,MagicAbility.Haste));
|
|
}
|
|
}
|
|
}
|
|
]
|