magarena/release/Magarena/scripts/Sokenzan_Spellblade.groovy

31 lines
1.0 KiB
Groovy

[
new MagicPermanentActivation(
[MagicConditionFactory.ManaCost("{1}{R}")],
new MagicActivationHints(MagicTiming.Pump),
"Pump"
) {
@Override
public MagicEvent[] getCostEvent(final MagicPermanent source) {
return [new MagicPayManaCostEvent(source,source.getController(),MagicManaCost.create("{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
));
}
}
]