Core/Combat: GetThreatListPlayerCount reading GetOwner instead of GetVictim
(cherry picked from commit fbaadffca58fa5bcea12f3125f3fbf66b56b463f)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user