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)