From 11c26a969fe2bf6b2b24c3499a87906c7c605fd8 Mon Sep 17 00:00:00 2001 From: megamage Date: Thu, 16 Jul 2009 10:22:58 +0800 Subject: [PATCH] [8174] Fixed typo in IsSpellHaveAura * Correct cast DBC data to AuraType instead of SpellEffect. Signed-off-by: ApoC --HG-- branch : trunk --- src/game/SpellMgr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/SpellMgr.h b/src/game/SpellMgr.h index 2dde39abba..fe5da3cda5 100644 --- a/src/game/SpellMgr.h +++ b/src/game/SpellMgr.h @@ -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; }