*Bitwise logic does not work on values that are not bitmasks. Thanks Spp for pointing this block of code out :)
--HG-- branch : trunk
This commit is contained in:
+1
-2
@@ -11971,8 +11971,7 @@ void Unit::SetHealth(uint32 val)
|
|||||||
{
|
{
|
||||||
if(getDeathState() == JUST_DIED)
|
if(getDeathState() == JUST_DIED)
|
||||||
val = 0;
|
val = 0;
|
||||||
// causes instant permadeath if you exit game while in combat?! :-|
|
else if(GetTypeId() == TYPEID_PLAYER && (getDeathState() == DEAD || getDeathState() == DEAD_FALLING))
|
||||||
else if((GetTypeId() == TYPEID_PLAYER) && (getDeathState() & (DEAD | DEAD_FALLING)) != 0)
|
|
||||||
val = 1;
|
val = 1;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user