28 lines
1.1 KiB
Groovy
28 lines
1.1 KiB
Groovy
[
|
|
new MagicWhenYouCastSpiritOrArcaneTrigger() {
|
|
@Override
|
|
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicCardOnStack spell) {
|
|
return new MagicEvent(
|
|
permanent,
|
|
this,
|
|
"Each other creature PN controls gets +1/+1 and gains trample until end of turn."
|
|
);
|
|
}
|
|
@Override
|
|
public void executeEvent(final MagicGame game, final MagicEvent event) {
|
|
final MagicTargetFilter<MagicPermanent> filter = new MagicOtherPermanentTargetFilter(
|
|
MagicTargetFilter.TARGET_CREATURE,
|
|
event.getPermanent()
|
|
);
|
|
final Collection<MagicPermanent> targets = game.filterPermanents(
|
|
event.getPlayer(),
|
|
filter
|
|
);
|
|
for (final MagicPermanent target : targets) {
|
|
game.doAction(new MagicChangeTurnPTAction(target, 1, 1));
|
|
game.doAction(new MagicGainAbilityAction(target, MagicAbility.Trample));
|
|
}
|
|
}
|
|
}
|
|
]
|