magarena/release/Magarena/scripts/Apocalypse_Hydra.groovy

21 lines
603 B
Groovy
Raw Normal View History

2013-05-30 19:29:43 -07:00
[
new MagicWhenComesIntoPlayTrigger() {
@Override
public MagicEvent executeTrigger(
final MagicGame game,
final MagicPermanent permanent,
2013-06-23 18:29:26 -07:00
final MagicPayedCost payedCost) {
final int count = payedCost.getX() >= 5 ?
2013-06-19 07:23:35 -07:00
2 * payedCost.getX() :
payedCost.getX();
2013-05-30 19:29:43 -07:00
game.doAction(new MagicChangeCountersAction(
permanent,
MagicCounterType.PlusOne,
count,
true
));
return MagicEvent.NONE;
}
}
]