From 1881ef1fe0e1e72d1842763565d1aee3c36ce49a Mon Sep 17 00:00:00 2001 From: crow Date: Tue, 2 Sep 2025 17:48:47 -0500 Subject: [PATCH] fix thresholds for LimitEnchantExpansion And disallow Naxx40 shoulder enchants --- conf/playerbots.conf.dist | 2 +- src/factory/PlayerbotFactory.cpp | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/conf/playerbots.conf.dist b/conf/playerbots.conf.dist index 47501b29..07c4b4ec 100644 --- a/conf/playerbots.conf.dist +++ b/conf/playerbots.conf.dist @@ -659,7 +659,7 @@ AiPlayerbot.RandomGearScoreLimit = 0 # Default: 1 (enabled) AiPlayerbot.IncrementalGearInit = 1 -# Set minimum level of bots that will enchant their equipment (Maxlevel + 1 to disable) +# Set minimum level of bots that will enchant their equipment (if greater than RandomBotMaxlevel, bots will not enchant equipment) # Default: 60 AiPlayerbot.MinEnchantingBotLevel = 60 diff --git a/src/factory/PlayerbotFactory.cpp b/src/factory/PlayerbotFactory.cpp index 6081443d..585f2633 100644 --- a/src/factory/PlayerbotFactory.cpp +++ b/src/factory/PlayerbotFactory.cpp @@ -126,6 +126,9 @@ void PlayerbotFactory::Init() if (id == 15463 || id == 15490) // Legendary Arcane Amalgamation continue; + if (id == 29467 || id == 29475 || id == 29480 || id == 29483) // Naxx40 Sapphiron Shoulder Enchants + continue; + SpellInfo const* spellInfo = sSpellMgr->GetSpellInfo(id); if (!spellInfo) continue; @@ -4362,10 +4365,10 @@ void PlayerbotFactory::ApplyEnchantAndGemsNew(bool destoryOld) } // disable next expansion enchantments - if (sPlayerbotAIConfig->limitEnchantExpansion && bot->GetLevel() <= 60 && enchantSpell >= 25072) + if (sPlayerbotAIConfig->limitEnchantExpansion && bot->GetLevel() <= 60 && enchantSpell >= 27899) continue; - if (sPlayerbotAIConfig->limitEnchantExpansion && bot->GetLevel() <= 70 && enchantSpell > 48557) + if (sPlayerbotAIConfig->limitEnchantExpansion && bot->GetLevel() <= 70 && enchantSpell >= 44483) continue; for (uint8 j = 0; j < MAX_SPELL_EFFECTS; ++j)