hondacrx
2021-11-23 22:36:07 -05:00
parent a752189bf5
commit 8e89c8b6be
+6 -1
View File
@@ -2138,7 +2138,12 @@ namespace Game.Entities
target = GetThreatManager().GetAnyTarget();
if (target == null)
target = GetCombatManager().GetAnyTarget();
Cypher.Assert(target != null, $"Creature {GetEntry()} ({GetName()}) is engaged without threat list");
if (target == null)
{
Log.outError(LogFilter.Unit, $"Creature {GetEntry()} ({GetName()}) is engaged without threat list");
return;
}
var u_do = new CallOfHelpCreatureInRangeDo(this, target, radius);
var worker = new CreatureWorker(this, u_do);