Disable attacks on game over

This commit is contained in:
Tipragot 2023-10-29 23:42:23 +01:00
parent 60787effa2
commit ecb9533615

View file

@ -159,6 +159,8 @@ def __attacks(world: World):
""" """
Déclenche les attaques de Edmond. Déclenche les attaques de Edmond.
""" """
if world[State] == State.GAME_OVER:
return
world[AttackTimer] = AttackTimer(world[AttackTimer] + world[Delta]) world[AttackTimer] = AttackTimer(world[AttackTimer] + world[Delta])
timer = world[AttackTimer] timer = world[AttackTimer]
if timer >= world[AttackSpeed] and world[State] == State.MOVING: if timer >= world[AttackSpeed] and world[State] == State.MOVING: