diff options
author | maximius <none@none> | 2009-10-02 01:06:06 -0700 |
---|---|---|
committer | maximius <none@none> | 2009-10-02 01:06:06 -0700 |
commit | 3c270f97ee35d2b8e363c6ac2c9cb0e40a533041 (patch) | |
tree | 626e26a01d21b6dbc62c367a593ead899f08cb3a /src/game/Unit.cpp | |
parent | ee8c59baa49489dd885037c73ff8a152308c556c (diff) |
*Fix typo, and try to avoid killing the dead..
--HG--
branch : trunk
Diffstat (limited to 'src/game/Unit.cpp')
-rw-r--r-- | src/game/Unit.cpp | 4 |
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(); |