summaryrefslogtreecommitdiff
path: root/src/game-server/monster.cpp
diff options
context:
space:
mode:
authorPhilipp Sehmisch <tmw@crushnet.org>2008-03-02 18:54:11 +0000
committerPhilipp Sehmisch <tmw@crushnet.org>2008-03-02 18:54:11 +0000
commit3cf2198e2485c80633f8d80d1a4c12843db86fde (patch)
treeecf35ba18c928275089e3614e48dc7dc7360ea79 /src/game-server/monster.cpp
parent2fd66a97ffceb05ab0020545b81f5e5a8de06c13 (diff)
downloadmanaserv-3cf2198e2485c80633f8d80d1a4c12843db86fde.tar.gz
manaserv-3cf2198e2485c80633f8d80d1a4c12843db86fde.tar.bz2
manaserv-3cf2198e2485c80633f8d80d1a4c12843db86fde.tar.xz
manaserv-3cf2198e2485c80633f8d80d1a4c12843db86fde.zip
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.
Diffstat (limited to 'src/game-server/monster.cpp')
-rw-r--r--src/game-server/monster.cpp2
1 files changed, 2 insertions, 0 deletions
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