29 lines
984 B
Groovy
29 lines
984 B
Groovy
[
|
|
new MagicPermanentActivation(
|
|
[MagicConditionFactory.ManaCost("{2}{G}{G}")],
|
|
new MagicActivationHints(MagicTiming.Pump),
|
|
"Pump"
|
|
) {
|
|
@Override
|
|
public MagicEvent[] getCostEvent(final MagicPermanent source) {
|
|
return [
|
|
new MagicPayManaCostEvent(source, "{2}{G}{G}")
|
|
];
|
|
}
|
|
@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));
|
|
}
|
|
}
|
|
]
|