magarena/release/Magarena/scripts/Sokenzan_Spellblade.groovy

30 lines
971 B
Groovy
Raw Normal View History

2013-05-19 22:32:26 -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,"{1}{R}")];
2013-05-19 22:32:26 -07:00
}
@Override
public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
return new MagicEvent(
source,
this,
2013-06-23 18:29:26 -07:00
"SN gets +X/+0 until end of turn, " +
2013-05-19 22:32:26 -07:00
"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
));
}
}
]