diff options
| author | Mihapro <miha.penger@outlook.com> | 2018-07-22 18:28:13 +0200 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2018-07-22 19:11:34 +0200 |
| commit | 4a0951057104355da1349a99e0ce882a0eb2ba98 (patch) | |
| tree | bc87826c80f357a63f0dae14097d8afd90e70275 /src/server/scripts | |
| parent | 1f1c2a207ed20609f559e22a79198d87f98763a6 (diff) | |
Core/Spells: Implement AURA_REMOVE_BY_INTERRUPT to provide aura scripts with more information when removing by Unit::RemoveAurasWithInterruptFlags
Diffstat (limited to 'src/server/scripts')
| -rw-r--r-- | src/server/scripts/Spells/spell_hunter.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/server/scripts/Spells/spell_hunter.cpp b/src/server/scripts/Spells/spell_hunter.cpp index 5777d5f4fca..606d1cdcf10 100644 --- a/src/server/scripts/Spells/spell_hunter.cpp +++ b/src/server/scripts/Spells/spell_hunter.cpp @@ -508,7 +508,10 @@ class spell_hun_misdirection : public SpellScriptLoader void OnRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/) { - if (GetTargetApplication()->GetRemoveMode() != AURA_REMOVE_BY_DEFAULT || !GetTarget()->HasAura(SPELL_HUNTER_MISDIRECTION_PROC)) + if (GetTargetApplication()->GetRemoveMode() == AURA_REMOVE_BY_DEFAULT || GetTargetApplication()->GetRemoveMode() == AURA_REMOVE_BY_INTERRUPT) + return; + + if (!GetTarget()->HasAura(SPELL_HUNTER_MISDIRECTION_PROC)) GetTarget()->ResetRedirectThreat(); } |
