*Fix typo, and try to avoid killing the dead..

--HG--
branch : trunk
This commit is contained in:
maximius committed 2009-10-02 01:06:06 -07:00
1 parent ee8c59baa4
commit 3c270f97ee
2 files changed
+4 -2

No files matched your search

+3 -1
View File
@@ -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();