From b9fb7554c5eb88aa982011eeddea331c69efc0a3 Mon Sep 17 00:00:00 2001 From: Machiavelli Date: Sat, 4 Dec 2010 18:29:14 +0100 Subject: Core/Disables: Add flags SPELL_DISABLE_MAP and SPELL_DISABLE_AREA for sourceType DISABLE_TYPE_SPELL. This will allow you to disable spells on certain maps/areas. Note that you must have at least flag SPELL_DISABLE_PLAYER or SPELL_DISABLE_CREATURE or SPELL_DISABLE_PET set too, as they take preference. The parameters for mapIds and areaIds are defined in new columns params_0 and params_1 respectively, in a comma-seperated string. Example: INSERT INTO disables VALUES(0, 8921, (1+16+32), "571,1", "1519", "Moonfire Example"); This will disable spell moonfire for players in maps 571,1 and area 1519. --HG-- branch : trunk --- src/server/game/Spells/SpellMgr.h | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/server/game/Spells') diff --git a/src/server/game/Spells/SpellMgr.h b/src/server/game/Spells/SpellMgr.h index e1e9e6e02b9..df130205943 100755 --- a/src/server/game/Spells/SpellMgr.h +++ b/src/server/game/Spells/SpellMgr.h @@ -48,14 +48,6 @@ enum SpellCategories SPELLCATEGORY_DRINK = 59, }; -enum SpellDisableTypes -{ - SPELL_DISABLE_PLAYER = 0x1, - SPELL_DISABLE_CREATURE = 0x2, - SPELL_DISABLE_PET = 0x4, - SPELL_DISABLE_DEPRECATED_SPELL = 0x8 -}; - enum SpellEffectTargetTypes { SPELL_REQUIRE_NONE, -- cgit v1.2.3