magarena/release/Magarena/scripts/Apocalypse_Hydra.groovy

21 lines
603 B
Groovy

[
new MagicWhenComesIntoPlayTrigger() {
@Override
public MagicEvent executeTrigger(
final MagicGame game,
final MagicPermanent permanent,
final MagicPayedCost payedCost) {
final int count = payedCost.getX() >= 5 ?
2 * payedCost.getX() :
payedCost.getX();
game.doAction(new MagicChangeCountersAction(
permanent,
MagicCounterType.PlusOne,
count,
true
));
return MagicEvent.NONE;
}
}
]