Skip to content

Commit

Permalink
Core: Blacklist added logging for PetTarget case.
Browse files Browse the repository at this point in the history
  • Loading branch information
Xian55 committed Jan 25, 2025
1 parent 517dcc6 commit 496ebc2
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Core/GoalsComponent/Blacklist/Blacklist.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,14 @@ public bool Is()

if (playerReader.PetTarget() && source.UnitGuid == playerReader.PetGuid)
{
if (lastGuid != source.UnitGuid)
{
LogPetTarget(logger, typeof(T),
source.UnitId, source.UnitGuid, source.UnitName);

lastGuid = source.UnitGuid;
}

return true;
}

Expand Down Expand Up @@ -240,5 +248,11 @@ public bool Is()
Message = "{type} ({id},{guid},{name},{classification}) evade on attack!")]
static partial void LogEvade(ILogger logger, Type type, int id, int guid, string name, string classification);

[LoggerMessage(
EventId = 0068,
Level = LogLevel.Warning,
Message = "{type} ({id},{guid},{name}) Pet Target!")]
static partial void LogPetTarget(ILogger logger, Type type, int id, int guid, string name);

#endregion
}

0 comments on commit 496ebc2

Please sign in to comment.