magarena/release/Magarena/scripts/Drifter_il_Dal.groovy

24 lines
846 B
Groovy
Raw Normal View History

2013-05-17 20:51:11 -07:00
[
new MagicAtUpkeepTrigger() {
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPlayer upkeepPlayer) {
return permanent.isController(upkeepPlayer) ?
new MagicEvent(
permanent,
new MagicMayChoice(
new MagicPayManaCostChoice(MagicManaCost.create("{U}"))
),
this,
2013-06-15 07:27:32 -07:00
"You may\$ pay {U}\$. If you don't, sacrifice SN."
) :
2013-05-17 20:51:11 -07:00
MagicEvent.NONE;
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
if (event.isNo()) {
game.doAction(new MagicSacrificeAction(event.getPermanent()));
2013-06-23 18:29:26 -07:00
}
2013-05-17 20:51:11 -07:00
}
}
]