Core/Threat: Fix a potential crash that would occur in specific edge cases of AI being a bit naughty.
Port From (https://github.com/TrinityCore/TrinityCore/commit/56fcd8ba1dc33e00ff6f98704764dcdebd838fd3)
This commit is contained in:
@@ -146,7 +146,8 @@ namespace Game.Combat
|
||||
NotifyAICombat(_owner, who);
|
||||
if (needOtherAI)
|
||||
NotifyAICombat(who, _owner);
|
||||
return true;
|
||||
|
||||
return IsInCombatWith(who);
|
||||
}
|
||||
|
||||
public bool IsInCombatWith(ObjectGuid guid)
|
||||
|
||||
Reference in New Issue
Block a user