Fix/Addition - Wizard Survivor Antag Status (#35226)
This commit is contained in:
@@ -35,6 +35,7 @@ using Content.Shared.Prying.Components;
|
||||
using Content.Shared.Traits.Assorted;
|
||||
using Robust.Shared.Audio.Systems;
|
||||
using Content.Shared.Ghost.Roles.Components;
|
||||
using Content.Shared.Tag;
|
||||
|
||||
namespace Content.Server.Zombies;
|
||||
|
||||
@@ -58,6 +59,7 @@ public sealed partial class ZombieSystem
|
||||
[Dependency] private readonly MovementSpeedModifierSystem _movementSpeedModifier = default!;
|
||||
[Dependency] private readonly NPCSystem _npc = default!;
|
||||
[Dependency] private readonly SharedRoleSystem _roles = default!;
|
||||
[Dependency] private readonly TagSystem _tag = default!;
|
||||
|
||||
/// <summary>
|
||||
/// Handles an entity turning into a zombie when they die or go into crit
|
||||
@@ -275,5 +277,9 @@ public sealed partial class ZombieSystem
|
||||
RaiseLocalEvent(target, ref ev, true);
|
||||
//zombies get slowdown once they convert
|
||||
_movementSpeedModifier.RefreshMovementSpeedModifiers(target);
|
||||
|
||||
//Need to prevent them from getting an item, they have no hands.
|
||||
// Also prevents them from becoming a Survivor. They're undead.
|
||||
_tag.AddTag(target, "InvalidForGlobalSpawnSpell");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user