diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-11-01 12:23:10 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-11-01 12:23:10 +0100 |
commit | d3f71a20ccf6c8ce83f51e8638e1dca7a13d685f (patch) | |
tree | cf4a8c67d4fb2450c201db03bdafe46fddb1c226 /core/src/ch/asynk | |
parent | f982678bfd6343dde03410c246a2d07028e99481 (diff) | |
download | RustAndDust-d3f71a20ccf6c8ce83f51e8638e1dca7a13d685f.zip RustAndDust-d3f71a20ccf6c8ce83f51e8638e1dca7a13d685f.tar.gz |
StateAttack: opponent gets the casualties not player
Diffstat (limited to 'core/src/ch/asynk')
-rw-r--r-- | core/src/ch/asynk/tankontank/game/states/StateAttack.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/ch/asynk/tankontank/game/states/StateAttack.java b/core/src/ch/asynk/tankontank/game/states/StateAttack.java index 34f7d61..8b1e068 100644 --- a/core/src/ch/asynk/tankontank/game/states/StateAttack.java +++ b/core/src/ch/asynk/tankontank/game/states/StateAttack.java @@ -82,7 +82,7 @@ public class StateAttack extends StateCommon int d2 = ctrl.player.d6(); System.err.print(" attack (" + selectedHex.getCol() + ";" + selectedHex.getRow() + ") -> (" + to.getCol() + ";" + to.getRow() + ") : 2D6 -> (" + d1 + " + " + d2 + ")"); if (map.attackPawn(selectedUnit, activeUnit, d1 + d2)) { - ctrl.player.casualty(activeUnit); + ctrl.opponent.casualty(activeUnit); if (map.breakPawns.size() > 0) setNextState(StateType.BREAK); } |