From e77b142eeda582de6324a25cec553ac629f1c35a Mon Sep 17 00:00:00 2001 From: CarnifexOptimus <156172553+CarnifexOptimus@users.noreply.github.com> Date: Sun, 6 Oct 2024 23:22:16 +0200 Subject: [PATCH] fix heroes gauntlet b3 --- BossMod/Data/Actor.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/BossMod/Data/Actor.cs b/BossMod/Data/Actor.cs index 49103747dc..516b7fcb78 100644 --- a/BossMod/Data/Actor.cs +++ b/BossMod/Data/Actor.cs @@ -107,7 +107,9 @@ public sealed class Actor(ulong instanceID, uint oid, int spawnIndex, string nam public Angle Rotation => PosRot.W.Radians(); public bool Omnidirectional => Utils.CharacterIsOmnidirectional(OID); public bool IsDeadOrDestroyed => IsDead || IsDestroyed; - public bool IsFriendlyNPC => Type == ActorType.Enemy && IsAlly && IsTargetable; + + private static readonly HashSet ignoreNPC = [0x2EFE]; // friendly NPCs that should not count as party members + public bool IsFriendlyNPC => Type == ActorType.Enemy && IsAlly && IsTargetable && !ignoreNPC.Contains(OID); public ActorStatus? FindStatus(uint sid) {