Core/AI: Fix CorpseRemoved() and SMART_EVENT_CORPSE_REMOVED not being called for creatures without m_respawnCompatibilityMode

Port From (https://github.com/TrinityCore/TrinityCore/commit/1ba5e17c950deea4e5eb2962b9769261de089c2c)
This commit is contained in:
hondacrx
2022-05-24 13:08:11 -04:00
parent c5f84e953f
commit a309a28164
@@ -200,6 +200,10 @@ namespace Game.Entities
}
else
{
CreatureAI ai = GetAI();
if (ai != null)
ai.CorpseRemoved(m_respawnDelay);
// In case this is called directly and normal respawn timer not set
// Since this timer will be longer than the already present time it
// will be ignored if the correct place added a respawn timer