aboutsummaryrefslogtreecommitdiff
path: root/src/game/Creature.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/Creature.cpp')
-rw-r--r--src/game/Creature.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/game/Creature.cpp b/src/game/Creature.cpp
index 5c3bf884e21..cc2bc64ae39 100644
--- a/src/game/Creature.cpp
+++ b/src/game/Creature.cpp
@@ -235,6 +235,10 @@ void Creature::RemoveCorpse()
setDeathState(DEAD);
ObjectAccessor::UpdateObjectVisibility(this);
loot.clear();
+ uint32 respawnDelay = m_respawnDelay;
+ if (AI())
+ AI()->CorpseRemoved(respawnDelay);
+
m_respawnTime = time(NULL) + m_respawnDelay;
float x,y,z,o;