mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 17:54:48 +01:00
Merge
--HG-- branch : trunk
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user