magarena/release/Magarena/scripts/Rampaging_Baloths.groovy

28 lines
862 B
Groovy

[
new MagicLandfallTrigger() {
@Override
public MagicEvent getEvent(final MagicPermanent permanent) {
return new MagicEvent(
permanent,
new MagicSimpleMayChoice(
MagicSimpleMayChoice.PLAY_TOKEN,
1,
MagicSimpleMayChoice.DEFAULT_YES
),
this,
"PN may\$ put a 4/4 green Beast " +
"creature token onto the battlefield."
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
if (event.isYes()) {
game.doAction(new MagicPlayTokenAction(
event.getPlayer(),
TokenCardDefinitions.get("Beast4")
));
}
}
}
]