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:
@@ -200,6 +200,10 @@ namespace Game.Entities
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
CreatureAI ai = GetAI();
|
||||||
|
if (ai != null)
|
||||||
|
ai.CorpseRemoved(m_respawnDelay);
|
||||||
|
|
||||||
// In case this is called directly and normal respawn timer not set
|
// In case this is called directly and normal respawn timer not set
|
||||||
// Since this timer will be longer than the already present time it
|
// Since this timer will be longer than the already present time it
|
||||||
// will be ignored if the correct place added a respawn timer
|
// will be ignored if the correct place added a respawn timer
|
||||||
|
|||||||
Reference in New Issue
Block a user