25 lines
790 B
Groovy
25 lines
790 B
Groovy
[
|
|
new MagicWhenComesIntoPlayTrigger() {
|
|
@Override
|
|
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent, final MagicPlayer player) {
|
|
return new MagicEvent(
|
|
permanent,
|
|
player,
|
|
new MagicMayChoice(
|
|
new MagicPayManaCostChoice(MagicManaCost.create("{1}"))
|
|
),
|
|
this,
|
|
"You may\$ pay {1}\$. If you don't, sacrifice SN."
|
|
);
|
|
}
|
|
@Override
|
|
public void executeEvent(
|
|
final MagicGame game,
|
|
final MagicEvent event) {
|
|
if (event.isNo()) {
|
|
game.doAction(new MagicSacrificeAction(event.getPermanent()));
|
|
}
|
|
}
|
|
}
|
|
]
|