diff options
author | jackpoz <giacomopoz@gmail.com> | 2015-12-07 19:11:48 +0100 |
---|---|---|
committer | jackpoz <giacomopoz@gmail.com> | 2015-12-07 19:11:48 +0100 |
commit | ee12982008267184aea0616554cfafaa9227c60c (patch) | |
tree | 4e50d6f62e103a75886588446aef5fe51d53484a | |
parent | 1ddf44caf3b0c9af2cc4169b608f1801c2f6f52a (diff) | |
parent | f8f815dbc3a9ba7ab7fd0700722e4c589e88edff (diff) |
Merge pull request #15933 from Asterc/3.3.5
Core/Spells: Fix Misdirection exploit
-rw-r--r-- | src/server/scripts/Spells/spell_hunter.cpp | 2 |
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 f2871871c30..0ca4112b288 100644 --- a/src/server/scripts/Spells/spell_hunter.cpp +++ b/src/server/scripts/Spells/spell_hunter.cpp @@ -480,7 +480,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(); } |