No more passive zombies (#21506)

This commit is contained in:
Vasilis
2023-11-08 02:27:49 +01:00
committed by GitHub
parent fb7afe454a
commit 490ebdc9ae

View File

@@ -16,6 +16,7 @@ using Content.Server.Roles;
using Content.Server.Speech.Components;
using Content.Server.Temperature.Components;
using Content.Shared.CombatMode;
using Content.Shared.CombatMode.Pacification;
using Content.Shared.Damage;
using Content.Shared.Hands.Components;
using Content.Shared.Hands.EntitySystems;
@@ -106,6 +107,7 @@ namespace Content.Server.Zombies
//This is needed for stupid entities that fuck up combat mode component
//in an attempt to make an entity not attack. This is the easiest way to do it.
var combat = EnsureComp<CombatModeComponent>(target);
RemComp<PacifiedComponent>(target);
_combat.SetCanDisarm(target, false, combat);
_combat.SetInCombatMode(target, true, combat);