Revenant stuff (#110)

* - add: Chaplain cult shield immune.

* - add: Revenant stuff.
This commit is contained in:
Aviu00
2024-02-24 01:06:24 +09:00
committed by GitHub
parent 6d26bf8e5d
commit a411d14461
10 changed files with 225 additions and 29 deletions

View File

@@ -1,6 +1,7 @@
using Content.Server.Hands.Systems;
using Content.Server.Stunnable;
using Content.Server._White.Cult.Items.Components;
using Content.Shared._White.Chaplain;
using Content.Shared.Mobs.Components;
using Content.Shared.Throwing;
using Content.Shared._White.Cult;
@@ -30,12 +31,9 @@ public sealed class ReturnItemOnThrowSystem : EntitySystem
if (!HasComp<MobStateComponent>(args.Target))
return;
if (!_stun.IsParalyzed(args.Target))
if (!_stun.IsParalyzed(args.Target) && !isCultist && !HasComp<HolyComponent>(args.Target))
{
if (!isCultist)
{
_stun.TryParalyze(args.Target, TimeSpan.FromSeconds(component.StunTime), true);
}
_stun.TryParalyze(args.Target, TimeSpan.FromSeconds(component.StunTime), true);
}
_hands.PickupOrDrop(thrower, uid);