magarena/release/Magarena/scripts/Deep_Slumber_Titan.groovy

21 lines
716 B
Groovy

[
new MagicWhenDamageIsDealtTrigger() {
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicDamage damage) {
return (damage.getTarget() == permanent && permanent.isTapped()) ?
new MagicEvent(
permanent,
this,
"Untap SN.") :
MagicEvent.NONE;
}
@Override
public void executeEvent(
final MagicGame game,
final MagicEvent event,
final Object[] choiceResults) {
game.doAction(new MagicUntapAction(event.getPermanent()));
}
}
]