*Always set health to 0 if dead. No exceptions.

--HG--
branch : trunk
This commit is contained in:
maximius
2009-10-01 22:51:43 -07:00
parent f8060fed5a
commit b832355b45
+1 -1
View File
@@ -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
{