From 33849603144f3bdd72771c018add1714bde09376 Mon Sep 17 00:00:00 2001 From: TrialTemp Date: Fri, 5 Jan 2024 22:05:36 -0600 Subject: [PATCH] preflight doing preflight things --- .../ba_data/python/bascenev1lib/game/capturetheflag.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/assets/ba_data/python/bascenev1lib/game/capturetheflag.py b/src/assets/ba_data/python/bascenev1lib/game/capturetheflag.py index 4e615e23..be8a5b44 100644 --- a/src/assets/ba_data/python/bascenev1lib/game/capturetheflag.py +++ b/src/assets/ba_data/python/bascenev1lib/game/capturetheflag.py @@ -522,12 +522,13 @@ class CaptureTheFlagGame(bs.TeamGameActivity[Player, Team]): def _handle_death_flag_capture(self, player: Player) -> None: """Handles flag values when a player dies or leaves the game.""" # Don't do anything if the player hasn't touched the flag at all. - if not player.touching_own_flag: return - + if not player.touching_own_flag: + return + team = player.team # For each "point" our player has touched the flag (Could be multiple), # deduct one from both our player and the flag's return touches variable. - for _ in range(player.touching_own_flag): + for _ in range(player.touching_own_flag): # Deduct player.touching_own_flag -= 1 team.flag_return_touches -= 1