Skip to content

Commit

Permalink
Fix a bug in the neutral unit logic.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kharacternyk committed Feb 3, 2024
1 parent 0707c58 commit fc98264
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions paper_tactics/entities/game.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ def _make_turn(self, cell: Cell, player: Player, opponent: Player) -> None:
self._rebuild_reachable_set(opponent, player)
elif cell in self.trenches:
player.walls.add(cell)
opponent.reachable.discard(cell)
else:
player.units.add(cell)
self._rebuild_reachable_set(player, opponent)
Expand Down

0 comments on commit fc98264

Please sign in to comment.