diff options
| author | megamage <none@none> | 2009-07-30 11:33:28 +0800 |
|---|---|---|
| committer | megamage <none@none> | 2009-07-30 11:33:28 +0800 |
| commit | 7121d98480d58a4214abcc2e22f678bad76cdecf (patch) | |
| tree | a2abe6c11df8264a0f96e090770583c8ea9b0d18 /src/game/Level3.cpp | |
| parent | 61162312231f1722cbb3f1464704bfa74ed30369 (diff) | |
[8249] Implement support `spell_proc_item_enchant` table for ppm item enchantments triggering at hit.
* Added a new SQL table, spell_proc_item_enchant, for "custom" ppmRates on Item Enchants that do not use auras.
With table data this must fix ppm for effect from 8033 and ranks enchanting, and item 6947/10918 and ranks enchanting.
* Implemented SPELLMOD_FREQUENCY_OF_SUCCESS (26).
That must fix work talent 14113, spell 32645 with ranks, glyph 41094 and item set effect 64917 in frequency part.
Thanks to MaS0n as author alternative patch that partly used in this patch.
Thanks to Thenecromancer as author alternative patch that ideas inspire MaS0n's patch writing and then this patch also.
Author: nos4r2zod
*Note: has been implemented before. Only use part of the patch.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Level3.cpp')
| -rw-r--r-- | src/game/Level3.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/game/Level3.cpp b/src/game/Level3.cpp index 5abc05260f1..e17d1fc975a 100644 --- a/src/game/Level3.cpp +++ b/src/game/Level3.cpp @@ -651,6 +651,7 @@ bool ChatHandler::HandleReloadAllSpellCommand(const char*) HandleReloadSpellLinkedSpellCommand("a"); HandleReloadSpellProcEventCommand("a"); HandleReloadSpellBonusesCommand("a"); + HandleReloadSpellProcItemEnchantCommand("a"); HandleReloadSpellScriptTargetCommand("a"); HandleReloadSpellTargetPositionCommand("a"); HandleReloadSpellThreatsCommand("a"); @@ -1047,6 +1048,14 @@ bool ChatHandler::HandleReloadSpellBonusesCommand(const char*) return true; } +bool ChatHandler::HandleReloadSpellProcItemEnchantCommand(const char*) +{ + sLog.outString( "Re-Loading Spell Proc Item Enchant..." ); + spellmgr.LoadSpellProcItemEnchant(); + SendGlobalSysMessage("DB table `spell_proc_item_enchant` (item enchantment ppm) reloaded."); + return true; +} + bool ChatHandler::HandleReloadSpellScriptTargetCommand(const char*) { sLog.outString( "Re-Loading SpellsScriptTarget..." ); |
