Hotfix for Telepathy (#5674)

Fix it
This commit is contained in:
Sir Warock 2026-04-16 02:22:17 +02:00 committed by GitHub
parent 9cd89d135c
commit dabe163385
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -16,6 +16,7 @@ using System.Linq;
using System.Text;
using Content.Server._DV.Psionics.Systems;
using Content.Shared._DV.Chat.Components;
using Content.Shared._DV.Psionics.Components;
namespace Content.Server.Nyanotrasen.Chat;
@ -65,6 +66,7 @@ public sealed class NyanoChatSystem : EntitySystem
private bool IsEligibleForTelepathy(EntityUid entity)
{
return _psionicSystem.CanUsePsionicAbility(entity)
&& HasComp<PsionicComponent>(entity)
&& (!TryComp<MobStateComponent>(entity, out var mobstate)
|| mobstate.CurrentState == MobState.Alive);
}