magarena/release/Magarena/scripts/Fire_Servant.groovy

17 lines
645 B
Groovy
Raw Normal View History

2013-03-17 23:07:33 -07:00
[
new MagicIfDamageWouldBeDealtTrigger(3) {
2012-06-17 05:19:08 -07:00
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicDamage damage) {
final MagicSource source=damage.getSource();
2012-10-09 02:16:26 -07:00
if (source.getController()==permanent.getController() &&
source.isSpell() &&
source.hasColor(MagicColor.Red) &&
source.getCardDefinition().isSpell()) {
2012-06-17 05:19:08 -07:00
// Generates no event or action.
2012-10-09 02:16:26 -07:00
damage.setAmount(damage.getAmount() * 2);
2012-06-17 05:19:08 -07:00
}
return MagicEvent.NONE;
}
2013-03-17 23:07:33 -07:00
}
]