mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
3.3.5 threat assert (#23034)
* Core/Creature: Change assert about Threat to log
(cherry picked from commit cb8ff7976b)
This commit is contained in:
@@ -2440,7 +2440,12 @@ void Creature::CallForHelp(float radius)
|
||||
target = GetThreatManager().GetAnyTarget();
|
||||
if (!target)
|
||||
target = GetCombatManager().GetAnyTarget();
|
||||
ASSERT(target, "Creature %u (%s) is engaged without threat list", GetEntry(), GetName().c_str());
|
||||
|
||||
if (!target)
|
||||
{
|
||||
TC_LOG_ERROR("entities.unit", "Creature %u (%s) is engaged without threat list", GetEntry(), GetName().c_str());
|
||||
return;
|
||||
}
|
||||
|
||||
Trinity::CallOfHelpCreatureInRangeDo u_do(this, target, radius);
|
||||
Trinity::CreatureWorker<Trinity::CallOfHelpCreatureInRangeDo> worker(this, u_do);
|
||||
|
||||
Reference in New Issue
Block a user