magarena/release/Magarena/scripts/Gratuitous_Violence.groovy

14 lines
502 B
Groovy

[
new MagicIfDamageWouldBeDealtTrigger(3) {
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicDamage damage) {
final MagicSource source = damage.getSource();
if (permanent.isFriend(source) && source.isCreature()) {
// Generates no event or action.
damage.setAmount(damage.getAmount() * 2);
}
return MagicEvent.NONE;
}
}
]