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

Fixes #24958

(cherry picked from commit 28a1132211)
This commit is contained in:
jackpoz
2020-10-25 13:29:36 +01:00
committed by Shauren
parent b7a3124156
commit 1ba5e17c95

View File

@@ -455,6 +455,9 @@ void Creature::RemoveCorpse(bool setSpawnTime, bool destroyForNearbyPlayers)
}
else
{
if (CreatureAI* ai = AI())
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