magarena/release/Magarena/scripts/Havoc_Demon.groovy

24 lines
777 B
Groovy
Raw Normal View History

2013-03-18 06:08:50 -07:00
[
new MagicWhenDiesTrigger() {
2012-06-17 05:19:08 -07:00
@Override
2012-09-01 19:18:53 -07:00
public MagicEvent getEvent(final MagicPermanent permanent) {
return new MagicEvent(
permanent,
permanent.getController(),
this,
"All creatures get -5/-5 until end of turn."
);
2012-06-17 05:19:08 -07:00
}
@Override
public void executeEvent(
2011-08-13 06:54:32 -07:00
final MagicGame game,
2013-03-22 22:00:53 -07:00
final MagicEvent event) {
final Collection<MagicPermanent> targets=
game.filterPermanents(event.getPlayer(),MagicTargetFilter.TARGET_CREATURE);
for (final MagicPermanent target : targets) {
game.doAction(new MagicChangeTurnPTAction(target,-5,-5));
2012-06-17 05:19:08 -07:00
}
}
2013-03-18 06:08:50 -07:00
}
]