magarena/release/Magarena/scripts/Kami_of_the_Tended_Garden.g...

27 lines
891 B
Groovy
Raw Normal View History

2013-05-17 21:17:58 -07:00
[
new MagicAtUpkeepTrigger() {
2013-04-12 19:32:25 -07:00
@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("{G}"))
),
this,
"You may\$ pay {G}\$. If you don't, sacrifice SN."
2013-04-12 19:32:25 -07:00
):
MagicEvent.NONE;
}
@Override
public void executeEvent(
final MagicGame game,
final MagicEvent event) {
if (event.isNo()) {
game.doAction(new MagicSacrificeAction(event.getPermanent()));
}
}
2013-05-17 21:17:58 -07:00
}
]