*Try to fix the bug that players cannot move after releasing.

--HG--
branch : trunk
This commit is contained in:
megamage
2008-12-08 20:23:38 -06:00
parent 9632543dab
commit bb8c7486fb

View File

@@ -10798,7 +10798,7 @@ void Unit::SetLevel(uint32 lvl)
void Unit::SetHealth(uint32 val)
{
if(!isAlive())
if(getDeathState() == JUST_DIED)
val = 0;
else
{