From 41c12d173b8d0cf297edf70e40b8e13b9bf3af35 Mon Sep 17 00:00:00 2001 From: QAston Date: Mon, 17 Aug 2009 02:53:39 +0200 Subject: *Add spell_bonus_data for lightwell - by Elron *Add aura_required, aura_forbidden, user_type columns to npc_spellclick_spells table for additional requirement checks *Remove workarounds from lightwell code and use new npc_spellclick_spells fields instead. --HG-- branch : trunk --- src/game/ObjectMgr.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/game/ObjectMgr.h') diff --git a/src/game/ObjectMgr.h b/src/game/ObjectMgr.h index a3c39f18fc9..6624cc7e76d 100644 --- a/src/game/ObjectMgr.h +++ b/src/game/ObjectMgr.h @@ -106,9 +106,12 @@ struct SpellClickInfo uint32 questEnd; // quest end (quest don't must be rewarded for spell apply) bool questStartCanActive; // if true then quest start can be active (not only rewarded) uint8 castFlags; + uint32 auraRequired; + uint32 auraForbidden; + SpellClickUserTypes userType; // helpers - bool IsFitToRequirements(Player const* player) const; + bool IsFitToRequirements(Player const* player, Creature const * clickNpc) const; }; typedef std::multimap SpellClickInfoMap; -- cgit v1.2.3