Re-write Enchantment (work in progress)

This commit is contained in:
Yunfan Li
2024-03-18 00:48:26 +08:00
parent 9368377fec
commit 3d5f3082a4
5 changed files with 487 additions and 25 deletions

View File

@@ -165,6 +165,9 @@ bool MaintenanceAction::Execute(Event event)
factory.InitAvailableSpells();
factory.InitSkills();
factory.InitMounts();
if (bot->getLevel() >= sPlayerbotAIConfig->minEnchantingBotLevel) {
factory.ApplyEnchantAndGemsNew();
}
bot->DurabilityRepairAll(false, 1.0f, false);
return true;
}