From c3a5f19615e2b3d9b34b41214abde53bbb118f41 Mon Sep 17 00:00:00 2001 From: Rane <60792108+Elijahrane@users.noreply.github.com> Date: Sun, 30 Oct 2022 20:05:21 -0400 Subject: [PATCH] fix zombie initial infected selection (#12285) --- Content.Server/GameTicking/Rules/ZombieRuleSystem.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Content.Server/GameTicking/Rules/ZombieRuleSystem.cs b/Content.Server/GameTicking/Rules/ZombieRuleSystem.cs index 0ae42b23a8..e587810a12 100644 --- a/Content.Server/GameTicking/Rules/ZombieRuleSystem.cs +++ b/Content.Server/GameTicking/Rules/ZombieRuleSystem.cs @@ -2,7 +2,7 @@ using System.Linq; using Content.Server.Actions; using Content.Server.Chat.Managers; using Content.Server.Disease; -using Content.Server.GameTicking.Rules.Configurations; +using Content.Server.Disease.Components; using Content.Server.Humanoid; using Content.Server.Mind.Components; using Content.Server.MobState; @@ -14,7 +14,6 @@ using Content.Server.Traitor; using Content.Server.Zombies; using Content.Shared.Actions.ActionTypes; using Content.Shared.CCVar; -using Content.Shared.FixedPoint; using Content.Shared.MobState; using Content.Shared.MobState.Components; using Content.Shared.Preferences; @@ -236,7 +235,7 @@ public sealed class ZombieRuleSystem : GameRuleSystem var prefList = new List(); foreach (var player in allPlayers) { - if (player.AttachedEntity != null) + if (player.AttachedEntity != null && HasComp(player.AttachedEntity)) { playerList.Add(player);