mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 01:37:37 +01:00
Core/Creature: Fall back to combat list if calling for help without threat list
This commit is contained in:
@@ -2322,6 +2322,8 @@ void Creature::CallForHelp(float radius)
|
||||
Unit* target = GetThreatManager().GetCurrentVictim();
|
||||
if (!target)
|
||||
target = GetThreatManager().GetAnyTarget();
|
||||
if (!target)
|
||||
target = GetCombatManager().GetAnyTarget();
|
||||
ASSERT(target, "Creature %u (%s) is engaged without threat list", GetEntry(), GetName().c_str());
|
||||
|
||||
Trinity::CallOfHelpCreatureInRangeDo u_do(this, target, radius);
|
||||
|
||||
Reference in New Issue
Block a user