--HG--
branch : trunk
This commit is contained in:
Machiavelli
2009-10-06 17:12:06 +02:00
2 changed files with 9 additions and 10 deletions

View File

@@ -11972,8 +11972,8 @@ void Unit::SetHealth(uint32 val)
if(getDeathState() == JUST_DIED)
val = 0;
// causes instant permadeath if you exit game while in combat?! :-|
//else if((getDeathState() & (DEAD | DEAD_FALLING)) != 0)
// val = 1;
else if((GetTypeId() == TYPEID_PLAYER) && (getDeathState() & (DEAD | DEAD_FALLING)) != 0)
val = 1;
else
{
uint32 maxHealth = GetMaxHealth();