From 51d637754f4bb735d273fb767b0d9bc0d72c0f50 Mon Sep 17 00:00:00 2001 From: "Waylon S. Walker" Date: Fri, 30 Jun 2023 19:53:47 -0500 Subject: [PATCH] fix light ghost --- learn_sql_model/game/light.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/learn_sql_model/game/light.py b/learn_sql_model/game/light.py index 5173f65..0282bc7 100644 --- a/learn_sql_model/game/light.py +++ b/learn_sql_model/game/light.py @@ -54,6 +54,8 @@ class Light: ) for other in self.game.player.others.__root__: + if other.id == self.game.player.hero.id: + continue v = pygame.math.Vector2(0, 1) v = v.rotate(-other.flashlight_angle) v.scale_to_length(other.flashlight_strength)