diff options
Diffstat (limited to 'core/src/ch/asynk/rustanddust/game')
-rw-r--r-- | core/src/ch/asynk/rustanddust/game/states/StateSelect.java | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/states/StateSelect.java b/core/src/ch/asynk/rustanddust/game/states/StateSelect.java index 695fb41..1a7dce2 100644 --- a/core/src/ch/asynk/rustanddust/game/states/StateSelect.java +++ b/core/src/ch/asynk/rustanddust/game/states/StateSelect.java @@ -87,9 +87,15 @@ public class StateSelect extends StateCommon isEnemy = ctrl.battle.getPlayer().isEnemy(unit); if (!isEnemy && (unit == selectedUnit) && unit.canMove()) { - // quick rotate - to = upHex; - ctrl.setState(StateType.ROTATE); + if (unit.isHq()) { + ctrl.hud.notify("HQ activation"); + select(upHex, unit, isEnemy); + ctrl.setState(StateType.MOVE); + } else { + // quick rotate + to = upHex; + ctrl.setState(StateType.ROTATE); + } } else { select(upHex, unit, isEnemy); ctrl.hud.notify(selectedUnit.toString()); |