We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d5d34d commit dbc2f0fCopy full SHA for dbc2f0f
Intersect.Server.Core/Entities/Npc.cs
@@ -1011,7 +1011,9 @@ public override void Update(long timeMs)
1011
{
1012
if (CanAttack(blockingEntity, default))
1013
1014
- ApplicationContext.Context.Value?.Logger.LogDebug($"Trying to attack {blockingEntity.Name} because they're blocking the path to {Target.Name}");
+ var blockingEntityName = blockingEntity?.Name ?? "Unknown Blocking Entity";
1015
+ var targetName = Target?.Name ?? "Unknown Target";
1016
+ ApplicationContext.Context.Value?.Logger.LogDebug($"Trying to attack {blockingEntityName} because they're blocking the path to {targetName}");
1017
ChangeDir(nextPathDirection);
1018
TryAttack(blockingEntity);
1019
blockerAttacked = true;
0 commit comments