From ecb9533615dcbe37c0abdfcdca2d137a785bc712 Mon Sep 17 00:00:00 2001 From: Tipragot Date: Sun, 29 Oct 2023 23:42:23 +0100 Subject: [PATCH] Disable attacks on game over --- src/scenes/directory_search.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/scenes/directory_search.py b/src/scenes/directory_search.py index 96916b7..38654ee 100644 --- a/src/scenes/directory_search.py +++ b/src/scenes/directory_search.py @@ -159,6 +159,8 @@ def __attacks(world: World): """ Déclenche les attaques de Edmond. """ + if world[State] == State.GAME_OVER: + return world[AttackTimer] = AttackTimer(world[AttackTimer] + world[Delta]) timer = world[AttackTimer] if timer >= world[AttackSpeed] and world[State] == State.MOVING: