i also did try it this way initially cuz i wanted to be sure it was checking and found a gem for each repair to be sure.. ill restructure it that way again and see.
Code:
function RidinDirty.GetGems()
for slotId = 0, GetBagSize(BAG_BACKPACK) do
if IsItemSoulGem(SOUL_GEM_TYPE_FILLED, BAG_BACKPACK, slotId) then
local gemSlot = slotId
--return gemSlot
RidinDirty.Recharge(slotId)
--if RidinDirty.Recharge == true then return end
end
end
end