aboutsummaryrefslogtreecommitdiff
path: root/src/game/Unit.cpp
diff options
context:
space:
mode:
authormaximius <none@none>2009-10-01 22:51:43 -0700
committermaximius <none@none>2009-10-01 22:51:43 -0700
commitb832355b453ba834d377ec811e03e14972a0438b (patch)
treefe9ed73798feebca58a9dd4b730ca0074c410318 /src/game/Unit.cpp
parentf8060fed5ad0029d48d14b4ba14190093da49929 (diff)
*Always set health to 0 if dead. No exceptions.
--HG-- branch : trunk
Diffstat (limited to 'src/game/Unit.cpp')
-rw-r--r--src/game/Unit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index 5f27254638c..e4598ad7c75 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -11958,7 +11958,7 @@ void Unit::SetLevel(uint32 lvl)
void Unit::SetHealth(uint32 val)
{
- if(getDeathState() == JUST_DIED)
+ if((getDeathState() & (JUST_DIED | DEAD | DEAD_FALLING)) != 0)
val = 0;
else
{