magarena/release/Magarena/scripts/Sliver_Queen.groovy

23 lines
819 B
Groovy
Raw Normal View History

2013-05-23 20:40:15 -07:00
[
new MagicPermanentActivation(
new MagicActivationHints(MagicTiming.Token),
"Token") {
@Override
public Iterable<MagicEvent> getCostEvent(final MagicPermanent source) {
2013-05-23 20:40:15 -07:00
return [new MagicPayManaCostEvent(source,"{2}")];
}
@Override
public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
return new MagicEvent(
source,
this,
"PN puts a 1/1 colorless Sliver creature token onto the battlefield."
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
game.doAction(new MagicPlayTokenAction(event.getPlayer(), TokenCardDefinitions.get("Sliver")));
}
}
]