magarena/release/Magarena/scripts/Ant_Queen.groovy

28 lines
915 B
Groovy
Raw Normal View History

2013-04-12 19:58:51 -07:00
[
new MagicPermanentActivation(
[
MagicConditionFactory.ManaCost("{1}{G}"),
],
new MagicActivationHints(MagicTiming.Flash),
"Token") {
@Override
public MagicEvent[] getCostEvent(final MagicPermanent source) {
2013-05-21 19:54:06 -07:00
return [new MagicPayManaCostEvent(source,"{1}{G}")];
2013-04-12 19:58:51 -07:00
}
@Override
public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
return new MagicEvent(
source,
this,
"Put a 1/1 green Insect creature token onto the battlefield."
);
}
@Override
public void executeEvent(
final MagicGame game,
final MagicEvent event) {
game.doAction(new MagicPlayTokenAction(event.getPlayer(), TokenCardDefinitions.get("Insect4")));
}
}
]