updates for inbag

This commit is contained in:
Jrc13245
2026-02-26 17:28:36 -05:00
parent f9d405ce1b
commit 836c0e0020
+12
View File
@@ -855,6 +855,18 @@ function CleveRoids.TestForActiveAction(actions)
end
end
-- If the active action has no texture (item wasn't in bags at parse time),
-- resolve it now via live bag lookup so the icon updates immediately
if newActiveAction and not newActiveAction.texture
and not newActiveAction.spell and not newActiveAction.petSpell then
local freshItem = CleveRoids.GetItem(newActiveAction.action)
if freshItem and freshItem.texture then
newActiveAction.item = freshItem
newActiveAction.texture = freshItem.texture
newActiveAction.type = newActiveAction.type or "item"
end
end
local changed = false
if currentActive ~= newActiveAction or currentSequence ~= newSequence then
actions.active = newActiveAction