magarena/release/Magarena/scripts/Titanic_Ultimatum.groovy

30 lines
1.1 KiB
Groovy
Raw Normal View History

2013-05-18 22:32:28 -07:00
[
new MagicSpellCardEvent() {
@Override
2013-06-15 18:11:36 -07:00
public MagicEvent getEvent(final MagicCardOnStack cardOnStack, final MagicPayedCost payedCost) {
2013-05-18 22:32:28 -07:00
return new MagicEvent(
cardOnStack,
this,
"Until end of turn, creatures you control get +5/+5 and gain first strike, lifelink and trample."
);
}
@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,5,5));
game.doAction(new MagicGainAbilityAction(
2013-05-18 22:32:28 -07:00
creature,
[
MagicAbility.FirstStrike,
2013-05-21 05:26:01 -07:00
MagicAbility.Lifelink,
2013-05-18 22:32:28 -07:00
MagicAbility.Trample
]
));
}
}
}
]