Fixed nasty Hot Potato bug

This commit is contained in:
TheMikirog 2022-11-13 22:37:42 +01:00 committed by GitHub
parent 05d2f1a4f7
commit 7fbf551a29
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -734,6 +734,7 @@ class HotPotato(ba.TeamGameActivity[Player, ba.Team]):
self.elimination_timer_display -= 1 # Decrease our timer by one second. self.elimination_timer_display -= 1 # Decrease our timer by one second.
if self.elimination_timer_display > 1: if self.elimination_timer_display > 1:
self.elimination_timer_display -= 1 # Decrease our timer by one second.
sound_volume = 1.0 / marked_player_amount sound_volume = 1.0 / marked_player_amount
for target in marked_players: 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) ba.playsound(self._danger_tick_sounds[self.elimination_timer_display - 1], 1.5)
else: else:
# Elimination timer is up! Let's eliminate all marked players. # 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() self._eliminate_marked_players()
# This function explodes all marked players # This function explodes all marked players