19 lines
655 B
Groovy
19 lines
655 B
Groovy
[
|
|
new MagicAtEndOfTurnTrigger() {
|
|
@Override
|
|
public MagicEvent executeTrigger(final MagicGame game, final MagicPermanent permanent, final MagicPlayer eotPlayer) {
|
|
return permanent.getController().controlsPermanent(MagicType.Artifact) == false ?
|
|
new MagicEvent(
|
|
permanent,
|
|
this,
|
|
"Sacrifice SN."
|
|
):
|
|
MagicEvent.NONE;
|
|
}
|
|
@Override
|
|
public void executeEvent(final MagicGame game, final MagicEvent event) {
|
|
game.doAction(new MagicSacrificeAction(event.getPermanent()));
|
|
}
|
|
}
|
|
]
|