From 6f45db37b22ee4d3bbbe8462f5186dc64f0084b5 Mon Sep 17 00:00:00 2001 From: Olion Date: Fri, 25 Sep 2015 20:51:32 +0300 Subject: [PATCH] [Core] Added IsSpellHaveEffect A workaround due to non-updated Eluna submodule --- src/game/Object/SpellMgr.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/game/Object/SpellMgr.h b/src/game/Object/SpellMgr.h index 8ffe2598..243bd26a 100644 --- a/src/game/Object/SpellMgr.h +++ b/src/game/Object/SpellMgr.h @@ -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])