From a309a28164136b6cbbc0f43515c3d1f79b777c73 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Tue, 24 May 2022 13:08:11 -0400 Subject: [PATCH] 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) --- Source/Game/Entities/Creature/Creature.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/Game/Entities/Creature/Creature.cs b/Source/Game/Entities/Creature/Creature.cs index 4c64fb2fc..cccb47c65 100644 --- a/Source/Game/Entities/Creature/Creature.cs +++ b/Source/Game/Entities/Creature/Creature.cs @@ -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