diff options
| author | QAston <qaston@gmail.com> | 2011-06-26 13:54:44 +0200 |
|---|---|---|
| committer | QAston <qaston@gmail.com> | 2011-06-26 13:54:44 +0200 |
| commit | ac88fa026f7996444a865dd15ea8955e22b90d99 (patch) | |
| tree | 664b42516aee60013363b7404b457efad8a9a25d /src/server/scripts/Commands | |
| parent | 6dcee0c0ea23617849a6b04ae22d2b74fb04f097 (diff) | |
Database/Spells: Add spell_proc table which is a replacement for spell_proc_event table. This is the initial patch from series of patches changing the way we currently handle procs in the core, and doesn't interfere with existing code in any way.
Diffstat (limited to 'src/server/scripts/Commands')
| -rw-r--r-- | src/server/scripts/Commands/cs_reload.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/server/scripts/Commands/cs_reload.cpp b/src/server/scripts/Commands/cs_reload.cpp index c51e148bcae..214e624fb22 100644 --- a/src/server/scripts/Commands/cs_reload.cpp +++ b/src/server/scripts/Commands/cs_reload.cpp @@ -144,6 +144,7 @@ public: { "spell_linked_spell", SEC_ADMINISTRATOR, true, &HandleReloadSpellLinkedSpellCommand, "", NULL }, { "spell_pet_auras", SEC_ADMINISTRATOR, true, &HandleReloadSpellPetAurasCommand, "", NULL }, { "spell_proc_event", SEC_ADMINISTRATOR, true, &HandleReloadSpellProcEventCommand, "", NULL }, + { "spell_proc", SEC_ADMINISTRATOR, true, &HandleReloadSpellProcsCommand, "", NULL }, { "spell_scripts", SEC_ADMINISTRATOR, true, &HandleReloadSpellScriptsCommand, "", NULL }, { "spell_target_position", SEC_ADMINISTRATOR, true, &HandleReloadSpellTargetPositionCommand, "", NULL }, { "spell_threats", SEC_ADMINISTRATOR, true, &HandleReloadSpellThreatsCommand, "", NULL }, @@ -284,6 +285,7 @@ public: HandleReloadSpellLearnSpellCommand(handler, "a"); HandleReloadSpellLinkedSpellCommand(handler, "a"); HandleReloadSpellProcEventCommand(handler, "a"); + HandleReloadSpellProcsCommand(handler, "a"); HandleReloadSpellBonusesCommand(handler, "a"); HandleReloadSpellTargetPositionCommand(handler, "a"); HandleReloadSpellThreatsCommand(handler, "a"); @@ -852,6 +854,14 @@ public: return true; } + static bool HandleReloadSpellProcsCommand(ChatHandler* handler, const char* /*args*/) + { + sLog->outString("Re-Loading Spell Proc conditions and data..."); + sSpellMgr->LoadSpellProcs(); + handler->SendGlobalGMSysMessage("DB table `spell_proc` (spell proc conditions and data) reloaded."); + return true; + } + static bool HandleReloadSpellBonusesCommand(ChatHandler* handler, const char* /*args*/) { sLog->outString("Re-Loading Spell Bonus Data..."); |
