magarena/release/Magarena/scripts/Inferno_Elemental.groovy

23 lines
774 B
Groovy
Raw Normal View History

2013-05-29 22:28:01 -07:00
[
new MagicWhenBlocksOrBecomesBlockedTrigger() {
2013-04-12 19:32:25 -07:00
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent blocker) {
2013-04-12 19:32:25 -07:00
return new MagicEvent(
permanent,
permanent == blocker ? blocker.getBlockedCreature() : blocker,
2013-04-12 19:32:25 -07:00
this,
"SN deals 3 damage to RN."
2013-04-12 19:32:25 -07:00
);
}
@Override
2013-05-29 22:28:01 -07:00
public void executeEvent(final MagicGame game, final MagicEvent event) {
2013-04-12 19:32:25 -07:00
final MagicDamage damage = new MagicDamage(
event.getPermanent(),
event.getRefPermanent(),
3
);
game.doAction(new MagicDealDamageAction(damage));
}
2013-05-29 22:28:01 -07:00
}
]