Maintenance command to retain defined special spells (#1024)

fixes a bug that caused the maintenance command to have bots lose the special spells
This commit is contained in:
SaW
2025-02-26 13:32:26 +01:00
committed by GitHub
parent 4968245471
commit 2766d553c7
2 changed files with 3 additions and 2 deletions

View File

@@ -122,6 +122,7 @@ public:
static void InitTalentsByParsedSpecLink(Player* bot, std::vector<std::vector<uint32>> parsedSpecLink, bool reset);
void InitAvailableSpells();
void InitClassSpells();
void InitSpecialSpells();
void InitEquipment(bool incremental, bool second_chance = false);
void InitPet();
void InitAmmo();
@@ -149,7 +150,6 @@ private:
void InitSpells();
void ClearSpells();
void ClearSkills();
void InitSpecialSpells();
void InitTalents(uint32 specNo);
void InitTalentsByTemplate(uint32 specNo);
void InitQuests(std::list<uint32>& questMap);

View File

@@ -174,6 +174,7 @@ bool MaintenanceAction::Execute(Event event)
factory.InitClassSpells();
factory.InitAvailableSpells();
factory.InitSkills();
factory.InitSpecialSpells();
factory.InitMounts();
factory.InitGlyphs(true);
if (bot->GetLevel() >= sPlayerbotAIConfig->minEnchantingBotLevel)
@@ -226,4 +227,4 @@ bool AutoGearAction::Execute(Event event)
}
bot->DurabilityRepairAll(false, 1.0f, false);
return true;
}
}