magarena/release/Magarena/scripts/Jade_Mage.groovy

28 lines
896 B
Groovy

[
new MagicPermanentActivation(
[MagicConditionFactory.ManaCost("{2}{G}")],
new MagicActivationHints(MagicTiming.Token,true),
"Token"
) {
@Override
public MagicEvent[] getCostEvent(final MagicPermanent source) {
return [new MagicPayManaCostEvent(source,"{2}{G}")];
}
@Override
public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
return new MagicEvent(
source,
this,
"PN puts a 1/1 green Saproling creature token onto the battlefield."
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
game.doAction(new MagicPlayTokenAction(event.getPlayer(),TokenCardDefinitions.get("Saproling")));
}
}
]