From 8fdb4f20ffdad90c037ef050009a6cab9b85953f Mon Sep 17 00:00:00 2001 From: DCoded <dicoded@email.com> Date: Fri, 24 Jun 2022 23:52:31 -0400 Subject: [PATCH] Bugfix --- src/events/scheduled/pitFight.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/events/scheduled/pitFight.js b/src/events/scheduled/pitFight.js index 51a81718b4b..646ed38d154 100644 --- a/src/events/scheduled/pitFight.js +++ b/src/events/scheduled/pitFight.js @@ -84,7 +84,9 @@ App.Events.SEPitFight = class SEPitFight extends App.Events.BaseEvent { } function getBodyguardFight() { - available.delete(S.Bodyguard.ID); + if (available.includes(S.Bodyguard.ID)) { + available.delete(S.Bodyguard.ID); + } return [available.pluck(), S.Bodyguard.ID]; } -- GitLab