diff --git a/Content.Server/Dragon/DragonSystem.cs b/Content.Server/Dragon/DragonSystem.cs index 1f15def5ce..29875c60ca 100644 --- a/Content.Server/Dragon/DragonSystem.cs +++ b/Content.Server/Dragon/DragonSystem.cs @@ -8,6 +8,7 @@ using Content.Shared.Maps; using Content.Shared.Mind; using Content.Shared.Mind.Components; using Content.Shared.Mobs; +using Content.Shared.Mobs.Systems; using Content.Shared.Movement.Systems; using Content.Shared.NPC.Systems; using Content.Shared.Zombies; @@ -27,6 +28,7 @@ public sealed partial class DragonSystem : EntitySystem [Dependency] private readonly SharedActionsSystem _actions = default!; [Dependency] private readonly SharedAudioSystem _audio = default!; [Dependency] private readonly SharedTransformSystem _transform = default!; + [Dependency] private readonly MobStateSystem _mobState = default!; private EntityQuery _objQuery; @@ -91,7 +93,8 @@ public sealed partial class DragonSystem : EntitySystem } } - comp.RiftAccumulator += frameTime; + if (!_mobState.IsDead(uid)) + comp.RiftAccumulator += frameTime; // Delete it, naughty dragon! if (comp.RiftAccumulator >= comp.RiftMaxAccumulator)