28 lines
877 B
Groovy
28 lines
877 B
Groovy
[
|
|
new MagicWhenComesIntoPlayTrigger() {
|
|
@Override
|
|
public MagicEvent executeTrigger(
|
|
final MagicGame game,
|
|
final MagicPermanent permanent,
|
|
final MagicPayedCost payedCost) {
|
|
return payedCost.isKicked() ?
|
|
new MagicEvent(
|
|
permanent,
|
|
payedCost.getKicker(),
|
|
this,
|
|
"Put RN 2/2 green Wolf creature tokens onto the battlefield."
|
|
):
|
|
MagicEvent.NONE;
|
|
}
|
|
|
|
@Override
|
|
public void executeEvent(final MagicGame game, final MagicEvent event) {
|
|
game.doAction(new MagicPlayTokensAction(
|
|
event.getPlayer(),
|
|
TokenCardDefinitions.get("2/2 green Wolf creature token"),
|
|
event.getRefInt()
|
|
));
|
|
}
|
|
}
|
|
]
|