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.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index 79440a8e016..e0069e99259 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -11958,10 +11958,11 @@ void Unit::SetLevel(uint32 lvl)
void Unit::SetHealth(uint32 val)
{
- if((getDeathState() & JUST_DIED) != 0)
+ if(getDeathState() == JUST_DIED)
val = 0;
- else if((getDeathState() & (DEAD | DEAD_FALLING)) != 0)
- val = 1;
+ // causes instant permadeath if you exit game while in combat?! :-|
+ //else if((getDeathState() & (DEAD | DEAD_FALLING)) != 0)
+ // val = 1;
else
{
uint32 maxHealth = GetMaxHealth();