mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
play lands from devmode
This commit is contained in:
@@ -406,12 +406,15 @@ public final class GuiDisplayUtil {
|
||||
return;
|
||||
}
|
||||
|
||||
final Game game = getGame();
|
||||
game.getAction().invoke(new Runnable() {
|
||||
@Override public void run() {
|
||||
final Card forgeCard = c.toForgeCard(p);
|
||||
|
||||
final Game game = getGame();
|
||||
if (forgeCard.getType().contains("Land")) {
|
||||
if (c.getRules().getType().isLand()) {
|
||||
forgeCard.setOwner(p);
|
||||
game.getAction().moveToPlay(forgeCard);
|
||||
|
||||
} else {
|
||||
final List<SpellAbility> choices = forgeCard.getBasicSpells();
|
||||
if (choices.isEmpty()) {
|
||||
@@ -423,16 +426,13 @@ public final class GuiDisplayUtil {
|
||||
return; // happens if cancelled
|
||||
}
|
||||
|
||||
game.getAction().invoke(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
game.getAction().moveToHand(forgeCard); // this is really needed (for rollbacks at least)
|
||||
// Human player is choosing targets for an ability controlled by chosen player.
|
||||
sa.setActivatingPlayer(p);
|
||||
HumanPlay.playSaWithoutPayingManaCost(game, sa);
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user