aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/AI/CreatureAI.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/game/AI/CreatureAI.h')
-rw-r--r--src/server/game/AI/CreatureAI.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/server/game/AI/CreatureAI.h b/src/server/game/AI/CreatureAI.h
index d4e5c895e26..61fe33d567e 100644
--- a/src/server/game/AI/CreatureAI.h
+++ b/src/server/game/AI/CreatureAI.h
@@ -98,6 +98,9 @@ class TC_GAME_API CreatureAI : public UnitAI
// Called for reaction when initially engaged - this will always happen _after_ JustEnteredCombat
virtual void JustEngagedWith(Unit* /*who*/) { }
+ // Called when the creature reaches 0 health (or 1 if unkillable).
+ virtual void OnHealthDepleted(Unit* /*attacker*/, bool /*isKill*/) { }
+
// Called when the creature is killed
virtual void JustDied(Unit* /*killer*/) { }