summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/ch/asynk')
-rw-r--r--core/src/ch/asynk/rustanddust/game/battles/BattleCommon.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/battles/BattleCommon.java b/core/src/ch/asynk/rustanddust/game/battles/BattleCommon.java
index 354ba29..64d04f0 100644
--- a/core/src/ch/asynk/rustanddust/game/battles/BattleCommon.java
+++ b/core/src/ch/asynk/rustanddust/game/battles/BattleCommon.java
@@ -140,17 +140,18 @@ public abstract class BattleCommon implements Battle
@Override
public boolean turnDone()
{
- map.turnDone();
+ boolean ret = false;
currentPlayer.turnEnd();
Player winner = getWinner();
if (winner != null) {
currentPlayer = winner;
- return true;
+ ret = true;
} else {
currentPlayer = getOpponent();
currentPlayer.turnStart(getActionPoints());
- return false;
}
+ map.turnDone();
+ return ret;
}
protected boolean turnDoneForBoth()