30 lines
896 B
Groovy
30 lines
896 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")
|
|
));
|
|
}
|
|
}
|
|
}
|
|
]
|