From: dolgovmi <96251346+dolgovmi@users.noreply.github.com> Date: Sat, 6 Jan 2024 04:19:11 +0000 (+0700) Subject: Fix player rolling agent and operative at the same time (#23568) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=7ff348f1bc0c47ab248b7251b80b5aa5f4714048;p=space-station-14.git Fix player rolling agent and operative at the same time (#23568) Update NukeopsRuleSystem.cs Probably fix the double pick bug by removing the picked agent from the Operative list --- diff --git a/Content.Server/GameTicking/Rules/NukeopsRuleSystem.cs b/Content.Server/GameTicking/Rules/NukeopsRuleSystem.cs index 59924fd8ec..870586e554 100644 --- a/Content.Server/GameTicking/Rules/NukeopsRuleSystem.cs +++ b/Content.Server/GameTicking/Rules/NukeopsRuleSystem.cs @@ -713,6 +713,7 @@ public sealed class NukeopsRuleSystem : GameRuleSystem { nukeOp = _random.PickAndTake(medPrefList); everyone.Remove(nukeOp); + prefList.Remove(nukeOp); Logger.InfoS("preset", "Insufficient preferred nukeop commanders, picking an agent"); }