*Remove all auras/summons also for deathstate dead and corpse. This should fix the bug that sometimes players become invulnerable after fall below texture.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-05-07 17:11:38 -05:00
parent 76aa9e951c
commit 22eeafa996
+3 -3
View File
@@ -10467,15 +10467,15 @@ void Unit::setDeathState(DeathState s)
if(IsNonMeleeSpellCasted(false)) if(IsNonMeleeSpellCasted(false))
InterruptNonMeleeSpells(false); InterruptNonMeleeSpells(false);
}
if (s == JUST_DIED)
{
UnsummonAllTotems(); UnsummonAllTotems();
RemoveAllControlled(); RemoveAllControlled();
RemoveAllAurasOnDeath(); RemoveAllAurasOnDeath();
ExitVehicle(); ExitVehicle();
}
if (s == JUST_DIED)
{
ModifyAuraState(AURA_STATE_HEALTHLESS_20_PERCENT, false); ModifyAuraState(AURA_STATE_HEALTHLESS_20_PERCENT, false);
ModifyAuraState(AURA_STATE_HEALTHLESS_35_PERCENT, false); ModifyAuraState(AURA_STATE_HEALTHLESS_35_PERCENT, false);
// remove aurastates allowing special moves // remove aurastates allowing special moves