Skip to content

Commit

Permalink
fix: updated which slots should be enchanted for DF enchanting
Browse files Browse the repository at this point in the history
  • Loading branch information
whatisboom committed Dec 8, 2022
1 parent 67849b0 commit 138fd03
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ local CheckSlotEnchant = {
[INVSLOT_CHEST] = true,
[INVSLOT_BODY] = false, -- shirt
[INVSLOT_TABARD] = false,
[INVSLOT_WRIST] = false, -- set in self:CheckGear if primary stat is int
[INVSLOT_WRIST] = true, -- set in self:CheckGear if primary stat is int

[INVSLOT_HAND] = false, -- set in self:CheckGear if primary stat is str
[INVSLOT_WAIST] = false,
Expand Down Expand Up @@ -331,25 +331,25 @@ function EnchantCheck:CheckGear(unit, items, iter, printWarnings)
local primaryStat = primaryStats[primaryStatIndex];


if isInspect then
-- cannot determine accurately primary stat for inspected targets
-- https://wowpedia.fandom.com/wiki/API_GetSpecializationInfo#Details
CheckSlotEnchant[INVSLOT_FEET] = true;
CheckSlotEnchant[INVSLOT_WRIST] = true;
CheckSlotEnchant[INVSLOT_HAND] = true;
elseif primaryStat == statStrings.AGILITY then
CheckSlotEnchant[INVSLOT_FEET] = true;
CheckSlotEnchant[INVSLOT_WRIST] = false;
CheckSlotEnchant[INVSLOT_HAND] = false;
elseif primaryStat == statStrings.STRENGTH then
CheckSlotEnchant[INVSLOT_FEET] = false;
CheckSlotEnchant[INVSLOT_WRIST] = false;
CheckSlotEnchant[INVSLOT_HAND] = true;
elseif primaryStat == statStrings.INTELLECT then
CheckSlotEnchant[INVSLOT_FEET] = false;
CheckSlotEnchant[INVSLOT_WRIST] = true;
CheckSlotEnchant[INVSLOT_HAND] = false;
end
-- if isInspect then
-- -- cannot determine accurately primary stat for inspected targets
-- -- https://wowpedia.fandom.com/wiki/API_GetSpecializationInfo#Details
-- CheckSlotEnchant[INVSLOT_FEET] = true;
-- CheckSlotEnchant[INVSLOT_WRIST] = true;
-- CheckSlotEnchant[INVSLOT_HAND] = true;
-- elseif primaryStat == statStrings.AGILITY then
-- CheckSlotEnchant[INVSLOT_FEET] = true;
-- CheckSlotEnchant[INVSLOT_WRIST] = false;
-- CheckSlotEnchant[INVSLOT_HAND] = false;
-- elseif primaryStat == statStrings.STRENGTH then
-- CheckSlotEnchant[INVSLOT_FEET] = false;
-- CheckSlotEnchant[INVSLOT_WRIST] = false;
-- CheckSlotEnchant[INVSLOT_HAND] = true;
-- elseif primaryStat == statStrings.INTELLECT then
-- CheckSlotEnchant[INVSLOT_FEET] = false;
-- CheckSlotEnchant[INVSLOT_WRIST] = true;
-- CheckSlotEnchant[INVSLOT_HAND] = false;
-- end

if not items then items = {} end
if not iter then iter = 0 end
Expand Down

0 comments on commit 138fd03

Please sign in to comment.