magarena/release/Magarena/scripts/Fervent_Charge.groovy

23 lines
804 B
Groovy

[
new MagicWhenAttacksTrigger() {
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent creature) {
final MagicPlayer player=permanent.getController();
return (creature.getController()==player) ?
new MagicEvent(
permanent,
player,
creature,
this,
"RN gets +2/+2 until end of turn."):
MagicEvent.NONE;
}
@Override
public void executeEvent(
final MagicGame game,
final MagicEvent event) {
game.doAction(new MagicChangeTurnPTAction(event.getRefPermanent(),2,2));
}
}
]