diff options
author | KingPin <none@none> | 2009-03-07 07:47:02 -0500 |
---|---|---|
committer | KingPin <none@none> | 2009-03-07 07:47:02 -0500 |
commit | ae7078784366172e27d2fe0ac4b18345b628fd3f (patch) | |
tree | 0aef6d01833a36338cd7335bf617a374e8215e9e /src/game/ObjectMgr.cpp | |
parent | 892e54c79cfe4282818701561fbdd118232c85de (diff) |
Extend the spell_disabled table to have a seperate flag for pet spells from player spells, Patch by Koani
--HG--
branch : trunk
Diffstat (limited to 'src/game/ObjectMgr.cpp')
-rw-r--r-- | src/game/ObjectMgr.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game/ObjectMgr.cpp b/src/game/ObjectMgr.cpp index a08c22450db..7da8e89b26b 100644 --- a/src/game/ObjectMgr.cpp +++ b/src/game/ObjectMgr.cpp @@ -6289,6 +6289,7 @@ void ObjectMgr::LoadSpellDisabledEntrys() { m_DisabledPlayerSpells.clear(); // need for reload case m_DisabledCreatureSpells.clear(); + m_DisabledPetSpells.clear(); QueryResult *result = WorldDatabase.Query("SELECT entry, disable_mask FROM spell_disabled"); uint32 total_count = 0; @@ -6321,6 +6322,8 @@ void ObjectMgr::LoadSpellDisabledEntrys() m_DisabledPlayerSpells.insert(spellid); if(disable_mask & SPELL_DISABLE_CREATURE) m_DisabledCreatureSpells.insert(spellid); + if(disable_mask & SPELL_DISABLE_PET) + m_DisabledPetSpells.insert(spellid); ++total_count; } while ( result->NextRow() ); |