mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 11:48:02 +00:00
- Enable DevMode to add Lands directly into play
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user