Merge branch 'master' into self-command

This commit is contained in:
Yunfan Li
2024-07-22 09:08:29 +08:00
49 changed files with 326 additions and 241 deletions

View File

@@ -168,7 +168,7 @@ bool MaintenanceAction::Execute(Event event)
factory.InitSkills();
factory.InitMounts();
factory.InitGlyphs(true);
if (bot->getLevel() >= sPlayerbotAIConfig->minEnchantingBotLevel) {
if (bot->GetLevel() >= sPlayerbotAIConfig->minEnchantingBotLevel) {
factory.ApplyEnchantAndGemsNew();
}
bot->DurabilityRepairAll(false, 1.0f, false);
@@ -201,7 +201,7 @@ bool AutoGearAction::Execute(Event event)
gs);
factory.InitEquipment(true);
factory.InitAmmo();
if (bot->getLevel() >= sPlayerbotAIConfig->minEnchantingBotLevel) {
if (bot->GetLevel() >= sPlayerbotAIConfig->minEnchantingBotLevel) {
factory.ApplyEnchantAndGemsNew();
}
bot->DurabilityRepairAll(false, 1.0f, false);