magarena/release/Magarena/scripts/Chameleon_Colossus.groovy

26 lines
901 B
Groovy
Raw Normal View History

2013-05-18 22:42:36 -07:00
[
new MagicPermanentActivation(
new MagicActivationHints(MagicTiming.Pump),
"Pump"
) {
@Override
public Iterable<MagicEvent> getCostEvent(final MagicPermanent source) {
2013-05-21 19:54:06 -07:00
return [new MagicPayManaCostEvent(source,"{2}{G}{G}")];
2013-05-18 22:42:36 -07:00
}
@Override
public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
return new MagicEvent(
source,
this,
"SN gets +X/+X until end of turn, where X is its power."
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
final MagicPermanent permanent=event.getPermanent();
final int power=permanent.getPower();
game.doAction(new MagicChangeTurnPTAction(permanent,power,power));
}
}
]