From 265af1832df838ac45a8e594b811776081f2f9e3 Mon Sep 17 00:00:00 2001 From: Matteo Benedetto Date: Wed, 20 Aug 2025 16:57:58 +0200 Subject: [PATCH] Fix unit position retrieval in Rat class to use correct game state --- units/rat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/units/rat.py b/units/rat.py index ad3b9b9..cc4f353 100644 --- a/units/rat.py +++ b/units/rat.py @@ -77,7 +77,7 @@ class Rat(Unit): return units = [] units.extend(self.game.unit_positions.get(self.position_before, [])) - units.extend(self.game.unit_positions_before.get(self.position, [])) + units.extend(self.game.unit_positions.get(self.position, [])) for unit in units: if unit.id == self.id or unit.age < AGE_THRESHOLD or self.position != unit.position_before: