magarena/release/Magarena/scripts/Mitotic_Slime.groovy

22 lines
744 B
Groovy
Raw Normal View History

2013-02-12 20:54:38 -08:00
[
new MagicWhenDiesTrigger() {
@Override
public MagicEvent getEvent(final MagicPermanent permanent) {
return new MagicEvent(
permanent,
this,
"PN puts two 2/2 green Ooze creature tokens onto the battlefield. " +
"They have \"When this creature dies, put two 1/1 green Ooze creature tokens onto the battlefield.\""
);
}
@Override
public void executeEvent(
final MagicGame game,
final MagicEvent event,
final Object[] choiceResults) {
game.doAction(new MagicPlayTokensAction(event.getPlayer(), TokenCardDefinitions.get("Ooze2"), 2));
}
}
]