Core/Spells: fix the issue with dispel auras. (thx warpten) closes #5902

This commit is contained in:
Kandera
2012-03-27 08:42:54 -04:00
parent 79a782f143
commit 0550f1dc05
+1 -1
View File
@@ -4984,7 +4984,7 @@ SpellCastResult Spell::CheckCast(bool strict)
break; break;
} }
if (!hasNonDispelEffect && !hasDispellableAura && m_spellInfo->HasEffect(SPELL_EFFECT_DISPEL)) if (!hasNonDispelEffect && !hasDispellableAura && m_spellInfo->HasEffect(SPELL_EFFECT_DISPEL) && m_spellInfo->CalcPowerCost(m_caster, SPELL_SCHOOL_MASK_NONE))
return SPELL_FAILED_NOTHING_TO_DISPEL; return SPELL_FAILED_NOTHING_TO_DISPEL;
for (int i = 0; i < MAX_SPELL_EFFECTS; i++) for (int i = 0; i < MAX_SPELL_EFFECTS; i++)