mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
Revert auto learn spell
This commit is contained in:
@@ -34,10 +34,12 @@ bool AutoLearnSpellAction::Execute(Event event)
|
|||||||
void AutoLearnSpellAction::LearnSpells(std::ostringstream* out)
|
void AutoLearnSpellAction::LearnSpells(std::ostringstream* out)
|
||||||
{
|
{
|
||||||
BroadcastHelper::BroadcastLevelup(botAI, bot);
|
BroadcastHelper::BroadcastLevelup(botAI, bot);
|
||||||
if (sPlayerbotAIConfig->autoLearnTrainerSpells)
|
if (sPlayerbotAIConfig->autoLearnTrainerSpells &&
|
||||||
|
sRandomPlayerbotMgr->IsRandomBot(bot))
|
||||||
LearnTrainerSpells(out);
|
LearnTrainerSpells(out);
|
||||||
|
|
||||||
if (sPlayerbotAIConfig->autoLearnQuestSpells)
|
if (sPlayerbotAIConfig->autoLearnTrainerSpells &&
|
||||||
|
sRandomPlayerbotMgr->IsRandomBot(bot))
|
||||||
LearnQuestSpells(out);
|
LearnQuestSpells(out);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user