]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Yeah (#21112)
authorcoolmankid12345 <55817627+coolmankid12345@users.noreply.github.com>
Fri, 20 Oct 2023 00:50:44 +0000 (20:50 -0400)
committerGitHub <noreply@github.com>
Fri, 20 Oct 2023 00:50:44 +0000 (20:50 -0400)
Co-authored-by: coolmankid12345 <coolmankid12345@users.noreply.github.com>
Content.Server/GameTicking/Rules/RevolutionaryRuleSystem.cs

index 54b45f59e940938adba5e9009bde2241877108e8..78568820e96cf3a2ac9ee86d975c1e8bf3946615 100644 (file)
@@ -144,8 +144,8 @@ public sealed class RevolutionaryRuleSystem : GameRuleSystem<RevolutionaryRuleCo
         {
             _antagSelection.EligiblePlayers(comp.HeadRevPrototypeId, comp.MaxHeadRevs, comp.PlayersPerHeadRev, comp.HeadRevStartSound,
                 "head-rev-role-greeting", "#5e9cff", out var chosen);
-            if (!chosen.Any())
-                GiveHeadRev(chosen, comp.RevPrototypeId, comp);
+            if (chosen.Any())
+                GiveHeadRev(chosen, comp.HeadRevPrototypeId, comp);
             else
             {
                 _chatManager.SendAdminAnnouncement(Loc.GetString("rev-no-heads"));