From c7f0fece7650485a15cca1678bac17aa654e871b Mon Sep 17 00:00:00 2001 From: Yunfan Li Date: Wed, 14 Aug 2024 17:35:26 +0800 Subject: [PATCH] Fix on autoLearnQuestSpells --- src/strategy/actions/AutoLearnSpellAction.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/strategy/actions/AutoLearnSpellAction.cpp b/src/strategy/actions/AutoLearnSpellAction.cpp index 942e49db..fe72b8d6 100644 --- a/src/strategy/actions/AutoLearnSpellAction.cpp +++ b/src/strategy/actions/AutoLearnSpellAction.cpp @@ -38,7 +38,7 @@ void AutoLearnSpellAction::LearnSpells(std::ostringstream* out) sRandomPlayerbotMgr->IsRandomBot(bot)) LearnTrainerSpells(out); - if (sPlayerbotAIConfig->autoLearnTrainerSpells && + if (sPlayerbotAIConfig->autoLearnQuestSpells && sRandomPlayerbotMgr->IsRandomBot(bot)) LearnQuestSpells(out); }