diff options
-rw-r--r-- | sql/updates/1304_world.sql | 3 | ||||
-rw-r--r-- | src/game/Chat.cpp | 1 | ||||
-rw-r--r-- | src/game/Chat.h | 1 | ||||
-rw-r--r-- | src/game/Level3.cpp | 9 |
4 files changed, 14 insertions, 0 deletions
diff --git a/sql/updates/1304_world.sql b/sql/updates/1304_world.sql new file mode 100644 index 00000000000..52663b214f3 --- /dev/null +++ b/sql/updates/1304_world.sql @@ -0,0 +1,3 @@ +delete from command where name in ('reload spell_linked_spell'); +insert into command (name, security, help) values +('reload spell_linked_spell','3','Usage: .reload spell_linked_spell\r\nReloads the spell_linked_spell DB table.'), diff --git a/src/game/Chat.cpp b/src/game/Chat.cpp index edaa568ae8e..27e54bd7bde 100644 --- a/src/game/Chat.cpp +++ b/src/game/Chat.cpp @@ -287,6 +287,7 @@ ChatCommand * ChatHandler::getCommandTable() { "spell_required", SEC_ADMINISTRATOR, true, &ChatHandler::HandleReloadSpellRequiredCommand, "", NULL }, { "spell_elixir", SEC_ADMINISTRATOR, true, &ChatHandler::HandleReloadSpellElixirCommand, "", NULL }, { "spell_learn_spell", SEC_ADMINISTRATOR, true, &ChatHandler::HandleReloadSpellLearnSpellCommand, "", NULL }, + { "spell_linked_spell", SEC_ADMINISTRATOR, true, &ChatHandler::HandleReloadSpellLinkedSpellCommand, "", NULL }, { "spell_pet_auras", SEC_ADMINISTRATOR, true, &ChatHandler::HandleReloadSpellPetAurasCommand, "", NULL }, { "spell_proc_event", SEC_ADMINISTRATOR, true, &ChatHandler::HandleReloadSpellProcEventCommand, "", NULL }, { "spell_script_target", SEC_ADMINISTRATOR, true, &ChatHandler::HandleReloadSpellScriptTargetCommand, "", NULL }, diff --git a/src/game/Chat.h b/src/game/Chat.h index c66d5e4dee7..34125fc15c1 100644 --- a/src/game/Chat.h +++ b/src/game/Chat.h @@ -260,6 +260,7 @@ class ChatHandler bool HandleReloadSpellRequiredCommand(const char* args); bool HandleReloadSpellElixirCommand(const char* args); bool HandleReloadSpellLearnSpellCommand(const char* args); + bool HandleReloadSpellLinkedSpellCommand(const char* args); bool HandleReloadSpellProcEventCommand(const char* args); bool HandleReloadSpellScriptTargetCommand(const char* args); bool HandleReloadSpellScriptsCommand(const char* args); diff --git a/src/game/Level3.cpp b/src/game/Level3.cpp index 20c4396eee8..73d1fa1e5c7 100644 --- a/src/game/Level3.cpp +++ b/src/game/Level3.cpp @@ -620,6 +620,7 @@ bool ChatHandler::HandleReloadAllSpellCommand(const char*) HandleReloadSpellRequiredCommand("a"); HandleReloadSpellElixirCommand("a"); HandleReloadSpellLearnSpellCommand("a"); + HandleReloadSpellLinkedSpellCommand("a"); HandleReloadSpellProcEventCommand("a"); HandleReloadSpellScriptTargetCommand("a"); HandleReloadSpellTargetPositionCommand("a"); @@ -927,6 +928,14 @@ bool ChatHandler::HandleReloadSpellLearnSpellCommand(const char*) return true; } +bool ChatHandler::HandleReloadSpellLinkedSpellCommand(const char*) +{ + sLog.outString( "Re-Loading Spell Linked Spells..." ); + spellmgr.LoadSpellLinked(); + SendGlobalGMSysMessage("DB table `spell_linked_spell` reloaded."); + return true; +} + bool ChatHandler::HandleReloadSpellProcEventCommand(const char*) { sLog.outString( "Re-Loading Spell Proc Event conditions..." ); |