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 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<uint32>& questMap);
void InitPet();
void ClearInventory();
void ClearAllItems();
void ResetQuests();

View File

@@ -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();