From 22eeafa996110fe3b81f3a9824009f80e97391c4 Mon Sep 17 00:00:00 2001 From: megamage Date: Thu, 7 May 2009 17:11:38 -0500 Subject: [PATCH] *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 --- src/game/Unit.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 28713ae59d..bc437a4b88 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -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