Core/Threat: Threat system adjustments
Port From (https://github.com/TrinityCore/TrinityCore/commit/392a644dc8562ea54b9c185a2776fceb1006e2cd)
This commit is contained in:
@@ -417,7 +417,7 @@ namespace Game.Entities
|
||||
LoadCreaturesAddon();
|
||||
LoadTemplateImmunities();
|
||||
|
||||
GetThreatManager().UpdateOnlineStates(true, true);
|
||||
GetThreatManager().EvaluateSuppressed();
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -541,7 +541,6 @@ namespace Game.Entities
|
||||
if (diff >= m_boundaryCheckTime)
|
||||
{
|
||||
GetAI().CheckInRoom();
|
||||
GetThreatManager().UpdateOnlineStates(false, true);
|
||||
m_boundaryCheckTime = 2500;
|
||||
}
|
||||
else
|
||||
@@ -898,7 +897,7 @@ namespace Game.Entities
|
||||
Unit target;
|
||||
|
||||
if (CanHaveThreatList())
|
||||
target = GetThreatManager().SelectVictim();
|
||||
target = GetThreatManager().GetCurrentVictim();
|
||||
else if (!HasReactState(ReactStates.Passive))
|
||||
{
|
||||
// We're a player pet, probably
|
||||
|
||||
Reference in New Issue
Block a user