From 3c2dffe1c466e5464d84190d15d45571836b8af5 Mon Sep 17 00:00:00 2001 From: drdev Date: Mon, 8 Dec 2014 03:05:21 +0000 Subject: [PATCH] Support undeploying by tapping commander row --- .../forge/screens/planarconquest/CommandCenterScreen.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/forge-gui-mobile/src/forge/screens/planarconquest/CommandCenterScreen.java b/forge-gui-mobile/src/forge/screens/planarconquest/CommandCenterScreen.java index b98052ecbe0..bd0bfdd835e 100644 --- a/forge-gui-mobile/src/forge/screens/planarconquest/CommandCenterScreen.java +++ b/forge-gui-mobile/src/forge/screens/planarconquest/CommandCenterScreen.java @@ -267,6 +267,13 @@ public class CommandCenterScreen extends FScreen implements IVCommandCenter { if (model.setCurrentRegion(commander.getDeployedRegion())) { regionDisplay.onRegionChanged(); } + else if (commander.getCurrentDayAction() != ConquestAction.Undeploy) { + //if already on commander's region, change action to undeploy + commander.setCurrentDayAction(ConquestAction.Undeploy); + } + else { + commander.setCurrentDayAction(null); + } } } else if (model.getCurrentPlaneData().getWins() >= panel.getWinsToUnlock()) {