mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
automatically initpet
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user