replace groovy code with ability in card script

master
melvin 2013-10-23 20:49:49 +08:00
parent 2917ec06a7
commit 2d2aef60a7
2 changed files with 2 additions and 31 deletions

View File

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

View File

@ -8,6 +8,6 @@ type=Creature
subtype=Elf,Warrior
cost={3}{G}
pt=5/5
ability=champion Elf;lord each wolf you control has deathtouch
ability=champion Elf;lord each wolf you control has deathtouch;
pay {2}{G}: PN puts a 2/2 green Wolf creature token onto the battlefield.
timing=main
requires_groovy_code