magarena/release/Magarena/scripts/Unstoppable_Ash.groovy

29 lines
885 B
Groovy
Raw Normal View History

2013-04-12 19:58:51 -07:00
[
new MagicWhenBecomesBlockedTrigger() {
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent attacker) {
final MagicPlayer player = permanent.getController();
return (player == attacker.getController()) ?
new MagicEvent(
permanent,
player,
attacker,
this,
"RN gets +0/+5 until end of turn."
):
MagicEvent.NONE;
}
@Override
public void executeEvent(
final MagicGame game,
final MagicEvent event) {
game.doAction(new MagicChangeTurnPTAction(
event.getRefPermanent(),
0,
5
));
}
}
]