Core/Spells: Fix being unable to use spells due hasDispellableAura being false if no spell effects were SPELL_EFFECT_DISPEL

This commit is contained in:
Kandera
2012-03-15 12:41:16 -04:00
parent 5e25791bff
commit fe46cf9796
+1 -1
View File
@@ -4953,7 +4953,7 @@ SpellCastResult Spell::CheckCast(bool strict)
}
}
if (!hasDispellableAura)
if (!hasDispellableAura && m_spellInfo->HasEffect(SPELL_EFFECT_DISPEL))
return SPELL_FAILED_NOTHING_TO_DISPEL;
for (int i = 0; i < MAX_SPELL_EFFECTS; i++)