- Enable DevMode to add Lands directly into play

This commit is contained in:
Sol
2012-12-03 01:29:31 +00:00
parent 9f72901b40
commit f1557ad489

View File

@@ -787,6 +787,11 @@ public final class GuiDisplayUtil {
Card forgeCard = c.toForgeCard(p);
final GameState game = Singletons.getModel().getGame();
if (forgeCard.getType().contains("Land")) {
forgeCard.setOwner(p);
game.getAction().moveToPlay(forgeCard);
} else {
final List<SpellAbility> choices = forgeCard.getBasicSpells();
if (choices.isEmpty()) {
return; // when would it happen?
@@ -798,10 +803,9 @@ public final class GuiDisplayUtil {
}
sa.setActivatingPlayer(p);
final GameState game = Singletons.getModel().getGame();
game.getAction().moveToHand(forgeCard); // this is really needed
game.getAction().playSpellAbilityForFree(sa);
}
}