replace groovy code with ability in card script

master
melvin 2013-10-21 20:50:14 +08:00
parent 5ad1bd3cba
commit 13fa4f8db8
2 changed files with 1 additions and 29 deletions

View File

@ -1,28 +0,0 @@
[
new MagicPermanentActivation(
new MagicActivationHints(MagicTiming.Flash),
"Token"
) {
@Override
public Iterable<MagicEvent> getCostEvent(final MagicPermanent source) {
return [
new MagicPayManaCostSacrificeEvent(source, "{2}{G}")
];
}
@Override
public MagicEvent getPermanentEvent(final MagicPermanent source, final MagicPayedCost payedCost) {
return new MagicEvent(
source,
this,
"Put a 3/3 green Centaur creature token onto the battlefield."
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
game.doAction(new MagicPlayTokenAction(event.getPlayer(), TokenCardDefinitions.get("Centaur3")));
}
}
]

View File

@ -7,5 +7,5 @@ type=Creature
subtype=Elf,Scout
cost={G}
pt=0/1
ability=pay {2}{G}, {S}: PN puts a 3/3 green Centaur creature token onto the battlefield.
timing=main
requires_groovy_code