From 3cf2198e2485c80633f8d80d1a4c12843db86fde Mon Sep 17 00:00:00 2001 From: Philipp Sehmisch Date: Sun, 2 Mar 2008 18:54:11 +0000 Subject: Moved death check from Being::damage to Being::update for more reliable death detection and to fix the bug that the last hit on a monster does not count for exp calculation. --- src/game-server/monster.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/game-server/monster.cpp') diff --git a/src/game-server/monster.cpp b/src/game-server/monster.cpp index 10bc2b30..46225e9a 100644 --- a/src/game-server/monster.cpp +++ b/src/game-server/monster.cpp @@ -353,6 +353,8 @@ int Monster::damage(Object *source, Damage const &damage) void Monster::died() { + if (mAction == DEAD) return; + Being::died(); mCountDown = 50; // Sets remove time to 5 seconds -- cgit v1.2.3-60-g2f50