magarena/release/Magarena/scripts/Ebony_Owl_Netsuke.groovy

22 lines
773 B
Groovy
Raw Normal View History

2013-07-19 05:42:51 -07:00
[
new MagicAtUpkeepTrigger() {
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPlayer player) {
return (permanent.isOpponent(player) &&
player.getHandSize() >= 7) ?
new MagicEvent(
permanent,
player,
this,
"SN deals 4 damage to PN."
):
MagicEvent.NONE;
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
final MagicDamage damage=new MagicDamage(event.getSource(),event.getPlayer(),4);
game.doAction(new MagicDealDamageAction(damage));
}
}
]