magarena/release/Magarena/scripts/Chandra_s_Spitfire.groovy

24 lines
847 B
Groovy
Raw Normal View History

2013-04-01 06:22:17 -07:00
[
new MagicWhenDamageIsDealtTrigger() {
2012-06-17 05:19:08 -07:00
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicDamage damage) {
final MagicPlayer player=permanent.getController();
final MagicTarget target=damage.getTarget();
return (!damage.isCombat()&&target.isPlayer()&&target!=player) ?
2011-08-13 08:52:26 -07:00
new MagicEvent(
2012-09-02 00:38:21 -07:00
permanent,
player,
this,
2013-04-01 06:22:17 -07:00
"SN gets +3/+0 until end of turn."
):
2011-09-04 01:19:43 -07:00
MagicEvent.NONE;
2012-06-17 05:19:08 -07:00
}
@Override
public void executeEvent(
2011-08-13 08:52:26 -07:00
final MagicGame game,
2013-03-22 22:00:53 -07:00
final MagicEvent event) {
2012-09-02 00:38:21 -07:00
game.doAction(new MagicChangeTurnPTAction(event.getPermanent(),3,0));
2012-06-17 05:19:08 -07:00
}
2013-04-01 06:22:17 -07:00
}
]