Core/Spells: fix misdirection removal on cancel. Closes #7776
This commit is contained in:
@@ -574,7 +574,7 @@ class spell_hun_misdirection : public SpellScriptLoader
|
|||||||
void OnRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)
|
void OnRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)
|
||||||
{
|
{
|
||||||
if (Unit* caster = GetCaster())
|
if (Unit* caster = GetCaster())
|
||||||
if (!GetDuration())
|
if (GetTargetApplication()->GetRemoveMode() != AURA_REMOVE_BY_DEFAULT)
|
||||||
caster->SetReducedThreatPercent(0, 0);
|
caster->SetReducedThreatPercent(0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user