mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
Init pet talents
This commit is contained in:
@@ -541,6 +541,7 @@ void PlayerbotFactory::InitPetTalents()
|
||||
// LOG_INFO("playerbots", "{} init pet talents failed with petTalentType < 0({})", bot->GetName().c_str(), pet_family->petTalentType);
|
||||
return;
|
||||
}
|
||||
pet->resetTalents();
|
||||
std::map<uint32, std::vector<TalentEntry const*> > spells;
|
||||
for (uint32 i = 0; i < sTalentStore.GetNumRows(); ++i)
|
||||
{
|
||||
|
||||
@@ -337,7 +337,7 @@ bool AutoSetTalentsAction::Execute(Event event)
|
||||
|
||||
PlayerbotFactory factory(bot, bot->GetLevel());
|
||||
factory.InitTalentsTree(true, true, true);
|
||||
|
||||
factory.InitPetTalents();
|
||||
botAI->TellMaster(out);
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user