25 lines
864 B
Groovy
25 lines
864 B
Groovy
|
[
|
||
|
new MagicAtUpkeepTrigger() {
|
||
|
@Override
|
||
|
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPlayer player) {
|
||
|
return (permanent.getController()==player) ?
|
||
|
new MagicEvent(
|
||
|
permanent,
|
||
|
this,
|
||
|
"SN deals 1 damage to each player."
|
||
|
):
|
||
|
MagicEvent.NONE;
|
||
|
}
|
||
|
@Override
|
||
|
public void executeEvent(
|
||
|
final MagicGame game,
|
||
|
final MagicEvent event) {
|
||
|
final MagicSource source=event.getSource();
|
||
|
for (final MagicPlayer player : game.getPlayers()) {
|
||
|
final MagicDamage damage=new MagicDamage(source,player,1);
|
||
|
game.doAction(new MagicDealDamageAction(damage));
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
]
|