31 lines
1016 B
Groovy
31 lines
1016 B
Groovy
[
|
|
new MagicPermanentActivation(
|
|
[MagicConditionFactory.ManaCost("{1}{R}")],
|
|
new MagicActivationHints(MagicTiming.Pump),
|
|
"Pump"
|
|
) {
|
|
@Override
|
|
public MagicEvent[] getCostEvent(final MagicPermanent source) {
|
|
return [new MagicPayManaCostEvent(source,"{1}{R}")];
|
|
}
|
|
@Override
|
|
public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
|
|
return new MagicEvent(
|
|
source,
|
|
this,
|
|
"SN gets +X/+0 until end of turn, " +
|
|
"where X is the number of cards in your hand."
|
|
);
|
|
}
|
|
@Override
|
|
public void executeEvent(final MagicGame game, final MagicEvent event) {
|
|
final MagicPlayer player = event.getPlayer();
|
|
game.doAction(new MagicChangeTurnPTAction(
|
|
event.getPermanent(),
|
|
player.getHandSize(),
|
|
0
|
|
));
|
|
}
|
|
}
|
|
]
|