magarena/release/Magarena/scripts/Knightly_Valor.groovy

18 lines
624 B
Groovy
Raw Normal View History

2013-04-12 19:58:51 -07:00
[
new MagicWhenComesIntoPlayTrigger() {
@Override
2013-06-19 07:23:35 -07:00
public MagicEvent executeTrigger(final MagicGame game, final MagicPermanent permanent, final MagicPayedCost payedCost) {
2013-04-12 19:58:51 -07:00
return new MagicEvent(
2013-06-15 06:13:32 -07:00
permanent,
this,
"PN puts a 2/2 white Knight creature token with vigilance onto the battlefield."
);
2013-04-12 19:58:51 -07:00
}
@Override
2013-06-15 06:13:32 -07:00
public void executeEvent(final MagicGame game, final MagicEvent event) {
2013-04-12 19:58:51 -07:00
game.doAction(new MagicPlayTokenAction(event.getPlayer(), TokenCardDefinitions.get("Knight2")));
}
}
]