magarena/release/Magarena/scripts/Crypt_Cobra.groovy

20 lines
676 B
Groovy

[
new MagicWhenAttacksUnblockedTrigger() {
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent creature) {
return (creature == permanent) ?
new MagicEvent(
permanent,
game.getDefendingPlayer(),
this,
"PN gets a poison counter."
):
MagicEvent.NONE;
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
game.doAction(new MagicChangePoisonAction(event.getPlayer(),1));
}
}
]