From 85a276419fa0fcddcb0ed9cc364aa8550a6364d8 Mon Sep 17 00:00:00 2001 From: ImUnicke Date: Mon, 4 Nov 2024 16:04:00 -0700 Subject: [PATCH] Classic: Fixed Item cost logic on gold-cost Items (fixed #1833) --- src/Classes/Item.Classic.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Classes/Item.Classic.lua b/src/Classes/Item.Classic.lua index 32401ca24a..3b8a53fb6e 100644 --- a/src/Classes/Item.Classic.lua +++ b/src/Classes/Item.Classic.lua @@ -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);