14 lines
517 B
Groovy
14 lines
517 B
Groovy
[
|
|
new MagicIfDamageWouldBeDealtTrigger(MagicTrigger.INCREASE_DAMAGE) {
|
|
@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;
|
|
}
|
|
}
|
|
]
|