From 030e9c986c9da1497a79d72bf43e2793548e3c13 Mon Sep 17 00:00:00 2001 From: Manuel Simon Hirsig Date: Thu, 10 Sep 2015 03:38:53 +0200 Subject: [PATCH] fixed a bug where armor would be parsed as charges for items without charges --- Scan.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Scan.lua b/Scan.lua index dbb7249..ab5204a 100644 --- a/Scan.lua +++ b/Scan.lua @@ -126,7 +126,7 @@ function processQueryResults() AuctionatorScanTooltip:SetAuctionItem("list", i) AuctionatorScanTooltip:Show() local chargesLabel = getglobal("AuctionatorScanTooltipTextLeft"..4):GetText() - local chargesString = gsub(chargesLabel and chargesLabel or "","%D", "") + local chargesString = gsub(chargesLabel and chargesLabel or "", "(%d+) Charges", "%1") local charges = tonumber(chargesString) local scanDatum = {