magarena/release/Magarena/scripts/Rumbling_Slum.groovy

25 lines
864 B
Groovy
Raw Normal View History

2013-03-31 22:41:51 -07:00
[
new MagicAtUpkeepTrigger() {
2012-06-17 05:19:08 -07:00
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPlayer player) {
return (permanent.getController()==player) ?
2011-08-13 06:37:22 -07:00
new MagicEvent(
2012-09-01 23:56:17 -07:00
permanent,
this,
2013-03-31 22:41:51 -07:00
"SN deals 1 damage to each player."
):
2011-09-04 01:19:43 -07:00
MagicEvent.NONE;
2012-06-17 05:19:08 -07:00
}
@Override
public void executeEvent(
2011-08-13 06:37:22 -07:00
final MagicGame game,
2013-03-22 22:00:53 -07:00
final MagicEvent event) {
2012-09-01 23:56:17 -07:00
final MagicSource source=event.getSource();
2012-06-17 05:19:08 -07:00
for (final MagicPlayer player : game.getPlayers()) {
final MagicDamage damage=new MagicDamage(source,player,1);
2012-06-17 05:19:08 -07:00
game.doAction(new MagicDealDamageAction(damage));
}
}
2013-03-31 22:41:51 -07:00
}
]