*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))
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user