magarena/release/Magarena/scripts/Thunder_Dragon.groovy

23 lines
923 B
Groovy
Raw Normal View History

2013-05-18 04:34:37 -07:00
[
new MagicWhenComesIntoPlayTrigger() {
@Override
2013-06-19 07:23:35 -07:00
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent, final MagicPayedCost payedCost) {
2013-05-18 04:34:37 -07:00
return new MagicEvent(
permanent,
this,
"SN deals 3 damage to each creature without flying."
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
final MagicSource source=event.getSource();
final Collection<MagicPermanent> creatures=
game.filterPermanents(event.getPlayer(),MagicTargetFilter.TARGET_CREATURE_WITHOUT_FLYING);
for (final MagicPermanent creature : creatures) {
final MagicDamage damage=new MagicDamage(source,creature,3);
game.doAction(new MagicDealDamageAction(damage));
}
}
}
]