aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBiglad <none@none>2009-10-19 14:07:26 +0100
committerBiglad <none@none>2009-10-19 14:07:26 +0100
commit7b2c5484d9a3c6781aeb200957e0a78db9df12df (patch)
tree6e46d5fadf3d830fb7db8f9ceeb1949e94fda511 /src
parentd09f2a1405e99a88fa13eaf38018634d0f854765 (diff)
* Fix client crash related to magic broom stick
* Fix exploit with Headless Horseman's Mount (no more never ending fly mode for players) --HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/SpellAuras.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp
index 4321ca98cfc..150b97fa30f 100644
--- a/src/game/SpellAuras.cpp
+++ b/src/game/SpellAuras.cpp
@@ -3293,6 +3293,10 @@ void AuraEffect::HandleAuraMounted(bool apply, bool Real, bool /*changeAmount*/)
else
{
m_target->Unmount();
+ //some mounts like Headless Horseman's Mount or broom stick are skill based spell
+ // need to remove ALL arura related to mounts, this will stop client crash with broom stick
+ // and never endless flying after using Headless Horseman's Mount
+ m_target->RemoveAurasByType(SPELL_AURA_MOUNTED);
}
}