From b4a89be4cd733324ea2ef7ba76f7f9e65eca01c1 Mon Sep 17 00:00:00 2001 From: Poszer <41213210+poszer@users.noreply.github.com> Date: Sat, 30 Mar 2019 00:10:12 +0100 Subject: [PATCH] fix(Core/Commands): Learn spell for GM lvl 3 (#1651) - Allow Learn spell from spell_script_names. - To learn spells you need to have GM level 3 (SEC_ADMINISTRATOR) instead of GM level 4 ( SEC_CONSOLE) --- src/server/scripts/Commands/cs_learn.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/scripts/Commands/cs_learn.cpp b/src/server/scripts/Commands/cs_learn.cpp index d9729ea52..fd9575059 100644 --- a/src/server/scripts/Commands/cs_learn.cpp +++ b/src/server/scripts/Commands/cs_learn.cpp @@ -92,7 +92,7 @@ public: SpellScriptsBounds bounds = sObjectMgr->GetSpellScriptsBounds(spell); uint32 spellDifficultyId = sSpellMgr->GetSpellDifficultyId(spell); - if (handler->GetSession()->GetSecurity() < SEC_CONSOLE && (bounds.first != bounds.second || spellDifficultyId)) + if (handler->GetSession()->GetSecurity() < SEC_ADMINISTRATOR && (bounds.first != bounds.second || spellDifficultyId)) { handler->PSendSysMessage("Spell %u cannot be learnt using a command!", spell); handler->SetSentErrorMessage(true);