From beafb883e48cb4cb0830ce53275da19242520e80 Mon Sep 17 00:00:00 2001 From: Big E Date: Tue, 30 Dec 2025 11:02:07 -0500 Subject: [PATCH] + Switched to HashSet --- Utilities/NPCUtils.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Utilities/NPCUtils.cs b/Utilities/NPCUtils.cs index 11683436f8..c360a2d7ea 100644 --- a/Utilities/NPCUtils.cs +++ b/Utilities/NPCUtils.cs @@ -1,4 +1,5 @@ using System; +using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Linq; using CalamityMod.Balancing; @@ -90,7 +91,7 @@ namespace CalamityMod public bool forceNetUpdate = false; // Player indexes put into this list will not be considered for targetting. - public int[] excludedPlayers = []; + public HashSet excludedPlayers = []; public CalamityTargetingParameters() { @@ -459,7 +460,7 @@ namespace CalamityMod // If either targeting method succeeded, then this target is being engaged. bool engageThisTarget = preferSameFound || standardTargetingRequirementsMet; - if (engageThisTarget && !targetShouldBeExcluded) + if (engageThisTarget) { anyTargetAvailable = true; tankMinionProjectileID = -1; // Reset any Stardust Guardian aggro because a real player was found.