magarena/release/Magarena/scripts/Canker_Abomination.groovy

19 lines
584 B
Groovy
Raw Normal View History

2013-04-12 19:58:51 -07:00
[
new MagicWhenComesIntoPlayTrigger() {
@Override
public MagicEvent executeTrigger(
final MagicGame game,
final MagicPermanent permanent,
2013-06-19 07:23:35 -07:00
final MagicPayedCost payedCost) {
final int amount = permanent.getOpponent().getNrOfPermanentsWithType(MagicType.Creature);
2013-04-12 19:58:51 -07:00
game.doAction(new MagicChangeCountersAction(
permanent,
MagicCounterType.MinusOne,
amount,
true
));
return MagicEvent.NONE;
}
}
]