[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:
+1
-1
@@ -196,7 +196,7 @@ inline bool IsSpellHaveEffect(SpellEntry const *spellInfo, SpellEffects effect)
|
|||||||
inline bool IsSpellHaveAura(SpellEntry const *spellInfo, AuraType aura)
|
inline bool IsSpellHaveAura(SpellEntry const *spellInfo, AuraType aura)
|
||||||
{
|
{
|
||||||
for(int i= 0; i < 3; ++i)
|
for(int i= 0; i < 3; ++i)
|
||||||
if(SpellEffects(spellInfo->EffectApplyAuraName[i])==aura)
|
if(AuraType(spellInfo->EffectApplyAuraName[i])==aura)
|
||||||
return true;
|
return true;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user