diff options
author | QAston <none@none> | 2009-07-30 11:52:40 +0200 |
---|---|---|
committer | QAston <none@none> | 2009-07-30 11:52:40 +0200 |
commit | 2a402ff6c776734f54db44662d34813e95b11c02 (patch) | |
tree | 883e83c2499b15bcd027c402c02e033ffd705a6e /src/game/SpellMgr.cpp | |
parent | a07a3417e3eb8e94360fc898d1bacfb823f87278 (diff) | |
parent | 9c52a12e08dcbca6234d03f01ef9910320a2c88e (diff) |
*Merge required after backout.
--HG--
branch : trunk
Diffstat (limited to 'src/game/SpellMgr.cpp')
-rw-r--r-- | src/game/SpellMgr.cpp | 61 |
1 files changed, 1 insertions, 60 deletions
diff --git a/src/game/SpellMgr.cpp b/src/game/SpellMgr.cpp index 942ab52e3da..ae708153142 100644 --- a/src/game/SpellMgr.cpp +++ b/src/game/SpellMgr.cpp @@ -1217,65 +1217,6 @@ void SpellMgr::LoadSpellProcEvents() sLog.outString( ">> Loaded %u extra spell proc event conditions", count ); } -/* -void SpellMgr::LoadSpellProcItemEnchant() -{ - mSpellProcItemEnchantMap.clear(); // need for reload case - - uint32 count = 0; - - // 0 1 - QueryResult *result = WorldDatabase.Query("SELECT entry, ppmRate FROM spell_proc_item_enchant"); - if( !result ) - { - - barGoLink bar( 1 ); - - bar.step(); - - sLog.outString(); - sLog.outString( ">> Loaded %u proc item enchant definitions", count ); - return; - } - - barGoLink bar( result->GetRowCount() ); - - do - { - Field *fields = result->Fetch(); - - bar.step(); - - uint32 entry = fields[0].GetUInt32(); - float ppmRate = fields[1].GetFloat(); - - SpellEntry const* spellInfo = sSpellStore.LookupEntry(entry); - - if (!spellInfo) - { - sLog.outErrorDb("Spell %u listed in `spell_proc_item_enchant` does not exist", entry); - continue; - } - - if ( GetFirstSpellInChain(entry) != entry ) - { - sLog.outErrorDb("Spell %u listed in `spell_proc_item_enchant` is not first rank in chain", entry); - // prevent loading since it won't have an effect anyway - continue; - } - - mSpellProcItemEnchantMap[entry] = ppmRate; - - ++count; - } while( result->NextRow() ); - - delete result; - - sLog.outString(); - sLog.outString( ">> Loaded %u proc item enchant definitions", count ); -} -*/ - void SpellMgr::LoadSpellBonusess() { mSpellBonusMap.clear(); // need for reload case @@ -3323,7 +3264,7 @@ bool IsDispelableBySpell(SpellEntry const * dispelSpell, uint32 spellId, bool de return def; } -void SpellMgr::LoadSpellProcItemEnchant() +void SpellMgr::LoadSpellEnchantProcData() { mSpellEnchantProcEventMap.clear(); // need for reload case |