Core/Combat: GetThreatListPlayerCount reading GetOwner instead of GetVictim

(cherry picked from commit fbaadffca58fa5bcea12f3125f3fbf66b56b463f)
This commit is contained in:
ccrs
2026-06-30 20:22:03 +02:00
committed by Shauren
parent c89afa797d
commit b1505c6836
+1 -1
View File
@@ -300,7 +300,7 @@ uint32 ThreatManager::GetThreatListPlayerCount(bool includeOffline/* = false*/)
return uint32(_sortedThreatList->size());
uint32 returnValue = 0;
for (ThreatReference const* ref : *_sortedThreatList)
if (ref->IsAvailable() && ref->GetOwner()->GetTypeId() == TYPEID_PLAYER)
if (ref->IsAvailable() && ref->GetVictim()->GetTypeId() == TYPEID_PLAYER)
++returnValue;
return returnValue;
}