diff --git a/src/PlayerbotFactory.h b/src/PlayerbotFactory.h index 4e675084..1dc112c1 100644 --- a/src/PlayerbotFactory.h +++ b/src/PlayerbotFactory.h @@ -119,6 +119,7 @@ class PlayerbotFactory : public InventoryAction void InitAvailableSpells(); void InitClassSpells(); void InitEquipment(bool incremental); + void InitPet(); private: void Prepare(); @@ -136,7 +137,6 @@ class PlayerbotFactory : public InventoryAction void InitTalents(uint32 specNo); void InitTalentsByTemplate(uint32 specNo); void InitQuests(std::list& questMap); - void InitPet(); void ClearInventory(); void ClearAllItems(); void ResetQuests(); diff --git a/src/strategy/actions/AutoLearnSpellAction.cpp b/src/strategy/actions/AutoLearnSpellAction.cpp index 106e68a9..cd151979 100644 --- a/src/strategy/actions/AutoLearnSpellAction.cpp +++ b/src/strategy/actions/AutoLearnSpellAction.cpp @@ -43,6 +43,7 @@ void AutoLearnSpellAction::LearnTrainerSpells(std::ostringstream* out) PlayerbotFactory factory(bot, bot->GetLevel()); factory.InitClassSpells(); factory.InitAvailableSpells(); + factory.InitPet(); // bot->LearnDefaultSkills(); // CreatureTemplateContainer const* creatureTemplateContainer = sObjectMgr->GetCreatureTemplates();