Core/Misc: A variety of clean-up changes:

Port From (https://github.com/TrinityCore/TrinityCore/commit/5aee452943e5c76f54f58eea9e6880b54a61ec9c)
This commit is contained in:
hondacrx
2021-05-18 12:31:45 -04:00
parent c92693102d
commit 66ba3fe724
4 changed files with 8 additions and 10 deletions
+2 -5
View File
@@ -797,8 +797,6 @@ namespace Game.Chat
handler.SendSysMessage($"{target.GetName()} ({target.GetGUID()}) is not alive.");
return true;
}
if (!target.CanHaveThreatList())
handler.SendSysMessage($"{target.GetName()} ({target.GetGUID()}) cannot have a threat list.");
uint count = 0;
var threatenedByMe = target.GetThreatManager().GetThreatenedByMeList();
@@ -816,9 +814,8 @@ namespace Game.Chat
}
if (!mgr.CanHaveThreatList())
return true;
if (mgr.IsEngaged())
handler.SendSysMessage($"{target.GetName()} ({target.GetGUID()}) cannot have a threat list.");
else if (mgr.IsEngaged())
{
count = 0;
handler.SendSysMessage($"Threat list of {target.GetName()} ({target.GetGUID()}, SpawnID {(target.IsCreature() ? target.ToCreature().GetSpawnId() : 0)})");