diff options
author | w12x <none@none> | 2008-10-21 03:58:38 -0500 |
---|---|---|
committer | w12x <none@none> | 2008-10-21 03:58:38 -0500 |
commit | 5e1c19e4d9b6e2deb247e6ce6b25ea132b8118d4 (patch) | |
tree | 57a6e1b306028999076e3e80bb52cadbc4af24e1 /src/game/ObjectMgr.h | |
parent | 23ff96ded9d418402b78832fd0555c781942eb5b (diff) |
[svn] Implement a new table (spell_disabled) to allow disabling some spells for players and / or creatures. To disable a spell for a players and pets, set 2^0 in the disable_mask, to disable for creatures, set 2^1. The comment field is optional. Original patch provided by Craker.
--HG--
branch : trunk
Diffstat (limited to 'src/game/ObjectMgr.h')
-rw-r--r-- | src/game/ObjectMgr.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/game/ObjectMgr.h b/src/game/ObjectMgr.h index 19a3f07a359..f76cc232e57 100644 --- a/src/game/ObjectMgr.h +++ b/src/game/ObjectMgr.h @@ -689,6 +689,10 @@ class ObjectMgr static bool CheckDeclinedNames(std::wstring mainpart, DeclinedName const& names); + void LoadSpellDisabledEntrys(); + bool IsPlayerSpellDisabled(uint32 spellid) { return (m_DisabledPlayerSpells.count(spellid) != 0); } + bool IsCreatureSpellDisabled(uint32 spellid) { return (m_DisabledCreatureSpells.count(spellid) != 0); } + int GetIndexForLocale(LocaleConstant loc); LocaleConstant GetLocaleForIndex(int i); // guild bank tabs @@ -798,6 +802,9 @@ class ObjectMgr typedef std::set<std::string> ReservedNamesMap; ReservedNamesMap m_ReservedNames; + std::set<uint32> m_DisabledPlayerSpells; + std::set<uint32> m_DisabledCreatureSpells; + GraveYardMap mGraveYardMap; GameTeleMap m_GameTeleMap; |