From df43305adef9cd5eb0bd79a2da0a21e9ed9a63dc Mon Sep 17 00:00:00 2001 From: RedDeadDepresso <94017243+RedDeadDepresso@users.noreply.github.com> Date: Mon, 8 Jan 2024 19:11:19 +0000 Subject: [PATCH] fix: player selection in tactical challenge --- tasks/tactical_challenge/tactical_challenge.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/tactical_challenge/tactical_challenge.py b/tasks/tactical_challenge/tactical_challenge.py index 8202be6..66880e0 100644 --- a/tasks/tactical_challenge/tactical_challenge.py +++ b/tasks/tactical_challenge/tactical_challenge.py @@ -33,10 +33,10 @@ class TacticalChallenge(TacticalChallengeUI): return self.config.stored.TacticalChallengeTicket.value def _player_select(self, select): - if select: + if not select: return random.choice(self.select_players) else: - return self.select_players[select] + return self.select_players[select-1] def _handle_challenge(self, status): match status: