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

This commit is contained in:
Treeston authored and Ovahlord committed 2020-07-22 17:42:38 +02:00
1 parent 5dcc8b1df6
commit 1020d1995f
1 file changed
+2
@@ -2340,6 +2340,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);