Core/Spells: fix misdirection removal on cancel. Closes #7776

This commit is contained in:
Vincent-Michael
2012-09-24 12:39:02 -04:00
committed by Kandera
parent 1c1405cb25
commit 118825601b
+1 -1
View File
@@ -574,7 +574,7 @@ class spell_hun_misdirection : public SpellScriptLoader
void OnRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)
{
if (Unit* caster = GetCaster())
if (!GetDuration())
if (GetTargetApplication()->GetRemoveMode() != AURA_REMOVE_BY_DEFAULT)
caster->SetReducedThreatPercent(0, 0);
}