diff --git a/src/Ai/Base/Value/ItemUsageValue.cpp b/src/Ai/Base/Value/ItemUsageValue.cpp index a1f9688d2..f7b5196cd 100644 --- a/src/Ai/Base/Value/ItemUsageValue.cpp +++ b/src/Ai/Base/Value/ItemUsageValue.cpp @@ -109,12 +109,9 @@ ItemUsage ItemUsageValue::Calculate() // Retrieve the bot's Enchanting skill level uint32 enchantingSkill = bot->GetSkillValue(SKILL_ENCHANTING); - // Check if the bot has a high enough skill to disenchant this item - if (proto->RequiredDisenchantSkill > 0 && enchantingSkill < proto->RequiredDisenchantSkill) - return ITEM_USAGE_NONE; // Not skilled enough to disenchant - - // BoE (Bind on Equip) items should NOT be disenchanted unless they are already bound - if (proto->Bonding == BIND_WHEN_PICKED_UP || (proto->Bonding == BIND_WHEN_EQUIPPED && isSoulbound)) + // Only disenchant if skilled enough and binding allows it + if (enchantingSkill >= proto->RequiredDisenchantSkill && + (proto->Bonding == BIND_WHEN_PICKED_UP || (proto->Bonding == BIND_WHEN_EQUIPPED && isSoulbound))) return ITEM_USAGE_DISENCHANT; }