play lands from devmode

This commit is contained in:
Maxmtg
2013-06-02 07:28:14 +00:00
parent 91ec9b6409
commit 4e48eb476f

View File

@@ -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);
}
});
}
});
}