magarena/release/Magarena/scripts/Kher_Keep.groovy

30 lines
958 B
Groovy
Raw Normal View History

[
new MagicPermanentActivation(
new MagicActivationHints(MagicTiming.Token),
"Token"
) {
@Override
public Iterable<MagicEvent> getCostEvent(final MagicPermanent source) {
[
new MagicTapEvent(source),
2013-05-21 19:54:06 -07:00
new MagicPayManaCostEvent(source,"{1}{R}")
];
}
@Override
2013-06-14 19:37:59 -07:00
public MagicEvent getPermanentEvent(final MagicPermanent source, final MagicPayedCost payedCost) {
return new MagicEvent(
source,
this,
"Put a 0/1 red Kobold creature token named Kobolds of Kher Keep onto the battlefield."
);
}
@Override
2013-06-14 19:37:59 -07:00
public void executeEvent(final MagicGame game, final MagicEvent event) {
game.doAction(new MagicPlayTokenAction(
event.getPlayer(),
TokenCardDefinitions.get("Kobolds")
));
}
}
]