From 171b9fe787ca8465b01dade675a949f8f23bceae39f4a88df1a1762a90d85fff Mon Sep 17 00:00:00 2001 From: andrea Date: Sat, 2 Aug 2025 00:00:00 +0200 Subject: [PATCH] fix --- entities/gamemap.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/entities/gamemap.py b/entities/gamemap.py index 19aaa1c..e27b22e 100644 --- a/entities/gamemap.py +++ b/entities/gamemap.py @@ -125,12 +125,12 @@ class BrSimMap(): for shift in [-1, 1]: x= coord_x + shift if x < 0 or x >= self.world_width -1: continue - resource= self.get_map_matrix()[x][coord_y] + resource= self.get_map_matrix()[coord_y][x] if resource and resource.is_player(): attackable_players.append(resource) for shift in [-1, 1]: y= coord_y + shift if y < 0 or y >= self.world_height -1: continue - resource= self.get_map_matrix()[coord_x][y] + resource= self.get_map_matrix()[y][coord_x] if resource and resource.is_player(): attackable_players.append(resource) return attackable_players