#77 defender takes over a territory after winning a battle

Unstable (example)

In 1914, when a territory is contested from the start of a turn, it's possible for one of the powers contesting that territory to attack on his turn, and the result is that the defender takes over the territory. This can happen if all the attackers units die and some of the defender's units survive.

Currently, if the defender wins, we don't check if the ownership needs to change (the assumption being that the defender already owns the territory).

Add the call to change ownership to the defender after it wins a battle.

1 Attachments


  • Chris Duncan

    Chris Duncan - 2014-01-11
    • status: open --> closed-accepted
    • assigned_to: Chris Duncan
  • Chris Duncan

    Chris Duncan - 2014-01-11

    accepted and committed,
    You forgot that when both attacker and defender lose all units, if there is another player in the territory then the other player takes over the territory. So i added that bit of logic too.


Log in to post a comment.