magarena/release/Magarena/scripts/Thunderous_Wrath.groovy

28 lines
986 B
Groovy
Raw Normal View History

2013-05-18 19:35:35 -07:00
[
new MagicSpellCardEvent() {
@Override
2013-06-15 18:11:36 -07:00
public MagicEvent getEvent(final MagicCardOnStack cardOnStack, final MagicPayedCost payedCost) {
2013-05-18 19:35:35 -07:00
return new MagicEvent(
cardOnStack,
MagicTargetChoice.NEG_TARGET_CREATURE_OR_PLAYER,
new MagicDamageTargetPicker(5),
this,
"SN deals 5 damage to target creature or player\$."
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
event.processTarget(game,new MagicTargetAction() {
public void doAction(final MagicTarget target) {
final MagicDamage damage = new MagicDamage(
event.getSource(),
target,
5
);
game.doAction(new MagicDealDamageAction(damage));
}
});
}
}
]