From ac88fa026f7996444a865dd15ea8955e22b90d99 Mon Sep 17 00:00:00 2001 From: QAston Date: Sun, 26 Jun 2011 13:54:44 +0200 Subject: 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. --- src/server/scripts/Commands/cs_reload.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/server/scripts/Commands') 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..."); -- cgit v1.2.3