From 7fbf551a29c3e87aad5a1cf285e52ccadaea02b8 Mon Sep 17 00:00:00 2001 From: TheMikirog Date: Sun, 13 Nov 2022 22:37:42 +0100 Subject: [PATCH] Fixed nasty Hot Potato bug --- plugins/minigames/hot_potato.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/minigames/hot_potato.py b/plugins/minigames/hot_potato.py index d2615b4..cc309e0 100644 --- a/plugins/minigames/hot_potato.py +++ b/plugins/minigames/hot_potato.py @@ -734,6 +734,7 @@ class HotPotato(ba.TeamGameActivity[Player, ba.Team]): self.elimination_timer_display -= 1 # Decrease our timer by one second. if self.elimination_timer_display > 1: + self.elimination_timer_display -= 1 # Decrease our timer by one second. sound_volume = 1.0 / marked_player_amount for target in marked_players: @@ -748,6 +749,7 @@ class HotPotato(ba.TeamGameActivity[Player, ba.Team]): ba.playsound(self._danger_tick_sounds[self.elimination_timer_display - 1], 1.5) else: # Elimination timer is up! Let's eliminate all marked players. + self.elimination_timer_display -= 1 # Decrease our timer by one second. self._eliminate_marked_players() # This function explodes all marked players