Core/Creature: Fall back to combat list if calling for help without threat list

This commit is contained in:
Treeston
2018-08-23 12:37:44 +02:00
parent 5706d49e49
commit 0e4a49b0a4

View File

@@ -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);