mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 04:08:01 +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);
|
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();
|
final List<SpellAbility> choices = forgeCard.getBasicSpells();
|
||||||
if (choices.isEmpty()) {
|
if (choices.isEmpty()) {
|
||||||
return; // when would it happen?
|
return; // when would it happen?
|
||||||
@@ -798,10 +803,9 @@ public final class GuiDisplayUtil {
|
|||||||
}
|
}
|
||||||
|
|
||||||
sa.setActivatingPlayer(p);
|
sa.setActivatingPlayer(p);
|
||||||
|
|
||||||
final GameState game = Singletons.getModel().getGame();
|
|
||||||
game.getAction().moveToHand(forgeCard); // this is really needed
|
game.getAction().moveToHand(forgeCard); // this is really needed
|
||||||
game.getAction().playSpellAbilityForFree(sa);
|
game.getAction().playSpellAbilityForFree(sa);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user