replace groovy code with ability

master
melvin 2013-10-23 11:56:56 +08:00
parent a650a21efe
commit ea8ddd3514
3 changed files with 2 additions and 28 deletions

View File

@ -1,4 +1,4 @@
name=Dragon5
name=5/5 red Dragon creature token with flying
token=Dragon
image=http://magiccards.info/extras/token/worldwake/dragon.jpg
value=5

View File

@ -1,26 +0,0 @@
[
new MagicPermanentActivation(
new MagicActivationHints(MagicTiming.Token),
"Token"
) {
@Override
public Iterable<MagicEvent> getCostEvent(final MagicPermanent source) {
return [new MagicPayManaCostEvent(source,"{5}{R}{R}")];
}
@Override
public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
return new MagicEvent(
source,
this,
"Put a 5/5 red Dragon creature token with flying onto the battlefield."
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
game.doAction(new MagicPlayTokenAction(event.getPlayer(),TokenCardDefinitions.get("Dragon5")));
}
}
]

View File

@ -5,5 +5,5 @@ value=3.924
rarity=R
type=Enchantment
cost={4}{R}{R}
ability=pay {5}{R}{R}: PN puts a 5/5 red Dragon creature token with flying onto the battlefield.
timing=enchantment
requires_groovy_code