correct token name, resolve name at load time for early detection of bugs

master
melvin 2013-10-23 11:59:35 +08:00
parent ea8ddd3514
commit e187c87694
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,5 @@
def Dragon = TokenCardDefinitions.get("5/5 red Dragon creature token with flying");
[
new MagicWhenComesIntoPlayTrigger() {
@Override
@ -21,7 +23,7 @@
}
game.doAction(new MagicPlayTokensAction(
event.getPlayer(),
TokenCardDefinitions.get("Dragon5"),
Dragon,
targets.size()
));
}

View File

@ -1,3 +1,5 @@
def Dragon = TokenCardDefinitions.get("5/5 red Dragon creature token with flying");
[
new MagicAtUpkeepTrigger() {
@Override
@ -13,7 +15,7 @@
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
game.doAction(new MagicPlayTokenAction(event.getPlayer(),TokenCardDefinitions.get("Dragon5")));
game.doAction(new MagicPlayTokenAction(event.getPlayer(),Dragon));
}
}
]