mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-20 18:10:02 +01:00
Revert auto learn spell
This commit is contained in:
parent
be4deb62cf
commit
6d11df0209
@ -34,10 +34,12 @@ bool AutoLearnSpellAction::Execute(Event event)
|
||||
void AutoLearnSpellAction::LearnSpells(std::ostringstream* out)
|
||||
{
|
||||
BroadcastHelper::BroadcastLevelup(botAI, bot);
|
||||
if (sPlayerbotAIConfig->autoLearnTrainerSpells)
|
||||
if (sPlayerbotAIConfig->autoLearnTrainerSpells &&
|
||||
sRandomPlayerbotMgr->IsRandomBot(bot))
|
||||
LearnTrainerSpells(out);
|
||||
|
||||
if (sPlayerbotAIConfig->autoLearnQuestSpells)
|
||||
if (sPlayerbotAIConfig->autoLearnTrainerSpells &&
|
||||
sRandomPlayerbotMgr->IsRandomBot(bot))
|
||||
LearnQuestSpells(out);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user