mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-14 05:59:29 +01:00
3.3.5 threat assert (#23034)
* Core/Creature: Change assert about Threat to log
This commit is contained in:
committed by
Ovahlord
parent
bad4b80374
commit
509499efbe
@@ -2336,7 +2336,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