Core/Spells: fix the issue with dispel auras. (thx warpten) closes #5902
This commit is contained in:
@@ -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++)
|
||||||
|
|||||||
Reference in New Issue
Block a user