aboutsummaryrefslogtreecommitdiff
path: root/src/game/Unit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/Unit.cpp')
-rw-r--r--src/game/Unit.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index e4598ad7c75..de868fd27e6 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -11958,8 +11958,10 @@ void Unit::SetLevel(uint32 lvl)
void Unit::SetHealth(uint32 val)
{
- if((getDeathState() & (JUST_DIED | DEAD | DEAD_FALLING)) != 0)
+ if((getDeathState() & JUST_DIED) != 0)
val = 0;
+ else if((getDeathState() & DEAD | DEAD_FALLING) != 0)
+ val = 1;
else
{
uint32 maxHealth = GetMaxHealth();