mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user