automatically initpet

This commit is contained in:
Yunfan Li
2023-08-05 19:35:15 +08:00
parent 810676485b
commit 2e592bce13
2 changed files with 2 additions and 1 deletions

View File

@@ -119,6 +119,7 @@ class PlayerbotFactory : public InventoryAction
void InitAvailableSpells(); void InitAvailableSpells();
void InitClassSpells(); void InitClassSpells();
void InitEquipment(bool incremental); void InitEquipment(bool incremental);
void InitPet();
private: private:
void Prepare(); void Prepare();
@@ -136,7 +137,6 @@ class PlayerbotFactory : public InventoryAction
void InitTalents(uint32 specNo); void InitTalents(uint32 specNo);
void InitTalentsByTemplate(uint32 specNo); void InitTalentsByTemplate(uint32 specNo);
void InitQuests(std::list<uint32>& questMap); void InitQuests(std::list<uint32>& questMap);
void InitPet();
void ClearInventory(); void ClearInventory();
void ClearAllItems(); void ClearAllItems();
void ResetQuests(); void ResetQuests();

View File

@@ -43,6 +43,7 @@ void AutoLearnSpellAction::LearnTrainerSpells(std::ostringstream* out)
PlayerbotFactory factory(bot, bot->GetLevel()); PlayerbotFactory factory(bot, bot->GetLevel());
factory.InitClassSpells(); factory.InitClassSpells();
factory.InitAvailableSpells(); factory.InitAvailableSpells();
factory.InitPet();
// bot->LearnDefaultSkills(); // bot->LearnDefaultSkills();
// CreatureTemplateContainer const* creatureTemplateContainer = sObjectMgr->GetCreatureTemplates(); // CreatureTemplateContainer const* creatureTemplateContainer = sObjectMgr->GetCreatureTemplates();