This commit is contained in:
Jrc13245
2025-08-27 16:43:15 -04:00
parent 9e482440e0
commit b91461f1c3
+2 -2
View File
@@ -87,7 +87,7 @@ function CleveRoids.GetReagentCount(reagentName)
-- Prefer link → id when available
local link = (GetContainerItemLink and GetContainerItemLink(bag, slot)) or nil
if link then
local id = tonumber(string.match(link, "item:(%d+)"))
local id = tonumber(string.find(link, "item:(%d+)"))
if (wantId and id == wantId) or (not wantId and string.find(link, "%["..reagentName.."%]")) then
total = total + (count > 0 and count or 1)
end
@@ -159,7 +159,7 @@ function CleveRoids.GetSpellCost(spellSlot, bookType)
end
if not cost and rt ~= "" then
local n = string.match(rt, "^(%d+)%s+(Mana|Energy|Rage|Focus)")
local n = string.find(rt, "^(%d+)%s+(Mana|Energy|Rage|Focus)")
if n then cost = tonumber(n) end
end