[Core] Added IsSpellHaveEffect

A workaround due to non-updated Eluna submodule
This commit is contained in:
Olion 2015-09-25 20:51:32 +03:00 committed by Antz
parent 0758271cf4
commit 6f45db37b2

View File

@ -98,6 +98,12 @@ uint16 GetSpellAuraMaxTicks(SpellEntry const* spellInfo);
uint16 GetSpellAuraMaxTicks(uint32 spellId);
WeaponAttackType GetWeaponAttackType(SpellEntry const* spellInfo);
// workaround for not touching Eluna code
inline bool IsSpellHaveEffect(SpellEntry const* spellInfo, SpellEffects effect)
{
return spellInfo ? spellInfo->HasSpellEffect(effect) : false;
}
inline bool IsAuraApplyEffect(SpellEntry const* spellInfo, SpellEffectIndex effecIdx)
{
switch (spellInfo->Effect[effecIdx])