Core/AI: Finally move the "is creature engaged" flag to be a property of the creature AI, where it honestly always belonged. Fixes #17981 and #23602 for real this time.

This commit is contained in:
Treeston authored and Ovahlord committed 2020-07-22 19:14:52 +02:00
1 parent 82d9fba979
commit c7c4f267c4
29 files changed
+161 -107

No files matched your search

+1 -1
View File
@@ -859,7 +859,7 @@ public:
ThreatManager& mgr = target->GetThreatManager();
if (!target->IsAlive())
{
handler->PSendSysMessage("%s (GUID %u) is not alive.", target->GetName().c_str(), target->GetGUID().GetCounter());
handler->PSendSysMessage("%s (GUID %u) is not alive.%s", target->GetName().c_str(), target->GetGUID().GetCounter(), target->IsEngaged() ? " (It is, however, engaged. Huh?)" : "");
return true;
}