[8174] Fixed typo in IsSpellHaveAura

* Correct cast DBC data to AuraType instead of SpellEffect.

    Signed-off-by: ApoC <[email protected]>

--HG--
branch : trunk
This commit is contained in:
megamage
2009-07-16 10:22:58 +08:00
parent 3f39ae9875
commit 11c26a969f
+1 -1
View File
@@ -196,7 +196,7 @@ inline bool IsSpellHaveEffect(SpellEntry const *spellInfo, SpellEffects effect)
inline bool IsSpellHaveAura(SpellEntry const *spellInfo, AuraType aura)
{
for(int i= 0; i < 3; ++i)
if(SpellEffects(spellInfo->EffectApplyAuraName[i])==aura)
if(AuraType(spellInfo->EffectApplyAuraName[i])==aura)
return true;
return false;
}