*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:
+3
-3
@@ -10467,15 +10467,15 @@ void Unit::setDeathState(DeathState s)
|
||||
|
||||
if(IsNonMeleeSpellCasted(false))
|
||||
InterruptNonMeleeSpells(false);
|
||||
}
|
||||
|
||||
if (s == JUST_DIED)
|
||||
{
|
||||
UnsummonAllTotems();
|
||||
RemoveAllControlled();
|
||||
RemoveAllAurasOnDeath();
|
||||
ExitVehicle();
|
||||
}
|
||||
|
||||
if (s == JUST_DIED)
|
||||
{
|
||||
ModifyAuraState(AURA_STATE_HEALTHLESS_20_PERCENT, false);
|
||||
ModifyAuraState(AURA_STATE_HEALTHLESS_35_PERCENT, false);
|
||||
// remove aurastates allowing special moves
|
||||
|
||||
Reference in New Issue
Block a user