Skip to content

Commit

Permalink
Classic: Fixed Item cost logic on gold-cost Items (fixed ATTWoWAddon#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ImUnicke committed Nov 4, 2024
1 parent 722633e commit 85a2764
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Classes/Item.Classic.lua
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ local collectibleAsCostForItem = function(t)
costTotal = costTotal + 1;
end
elseif (ref.collectible and not ref.collected) or (ref.total and ref.total > ref.progress) then
if ref.cost then
if ref.cost and type(ref.cost) == "table" then
for k,v in ipairs(ref.cost) do
if v[2] == id and v[1] == "i" then
costTotal = costTotal + (v[3] or 1);
Expand Down

0 comments on commit 85a2764

Please sign in to comment.