aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormegamage <none@none>2009-05-07 17:11:38 -0500
committermegamage <none@none>2009-05-07 17:11:38 -0500
commit22eeafa996110fe3b81f3a9824009f80e97391c4 (patch)
treeb1617ab7fee5e136a738df4ee17301e3b10c05a7 /src
parent76aa9e951c0fe7ba63af2654b455162626ebb93f (diff)
*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
Diffstat (limited to 'src')
-rw-r--r--src/game/Unit.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index 28713ae59d9..bc437a4b88b 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