aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAsterc <sirikbau1@hotmail.com>2015-12-02 14:27:10 -0200
committerMitchesD <majklprofik@seznam.cz>2016-01-15 20:33:34 +0100
commita0719b75f33a81b3258008a4f0e9959bdae1e5d9 (patch)
treea46fc2a590ce2026329d2458cfa737eb52035a4b /src
parent3f0026d8e7e47397e927374fde7e0bd62c248563 (diff)
Correctly reset the redirected threat of the hunter's spell Misdirection in cases when it has RemoveMode AURA_REMOVE_BY_DEFAULT
Closes #15930 (cherry picked from commit f8f815dbc3a9ba7ab7fd0700722e4c589e88edff)
Diffstat (limited to 'src')
-rw-r--r--src/server/scripts/Spells/spell_hunter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/scripts/Spells/spell_hunter.cpp b/src/server/scripts/Spells/spell_hunter.cpp
index f0ef6d80b40..b5a1b7303a0 100644
--- a/src/server/scripts/Spells/spell_hunter.cpp
+++ b/src/server/scripts/Spells/spell_hunter.cpp
@@ -417,7 +417,7 @@ class spell_hun_misdirection : public SpellScriptLoader
void OnRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)
{
- if (GetTargetApplication()->GetRemoveMode() != AURA_REMOVE_BY_DEFAULT)
+ if (GetTargetApplication()->GetRemoveMode() != AURA_REMOVE_BY_DEFAULT || !GetTarget()->HasAura(SPELL_HUNTER_MISDIRECTION_PROC))
GetTarget()->ResetRedirectThreat();
}