magarena/release/Magarena/scripts/Thalakos_Seer.groovy

21 lines
633 B
Groovy

[
new MagicWhenLeavesPlayTrigger() {
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent, final MagicPermanent left) {
return (permanent == left) ?
new MagicEvent(
permanent,
this,
"PN draws a card."
) :
MagicEvent.NONE;
}
@Override
public void executeEvent(
final MagicGame game,
final MagicEvent event) {
game.doAction(new MagicDrawAction(event.getPlayer(),1));
}
}
]