Mercurial > wow > itemauditor
diff Modules/Events.lua @ 33:f5d384fe7e4a
Fixed a bug that occurs if you take a flight point and the first thing you kill only has one item. ItemAuditor was incorrectly attaching the cost fo the flight to the cost of that item.
author | Asa Ayers <Asa.Ayers@Gmail.com> |
---|---|
date | Sat, 17 Jul 2010 07:33:23 -0700 |
parents | 75d917ccd942 |
children | e27d13095b49 |
line wrap: on
line diff
--- a/Modules/Events.lua Fri Jul 16 16:31:24 2010 -0700 +++ b/Modules/Events.lua Sat Jul 17 07:33:23 2010 -0700 @@ -115,10 +115,11 @@ end if positiveCount + negativeCount == 0 then - return - end - - if diff.money > 0 and self:tcount(positive) > 0 and self:tcount(negative) == 0 then + --[[ + Nothing needs to be done, but this will prevent mistakenly attributing + the cost of flights to the first item you pick up. + ]] + elseif diff.money > 0 and self:tcount(positive) > 0 and self:tcount(negative) == 0 then self:Debug("loot") elseif abs(diff.money) > 0 and self:tcount(diff.items) == 1 then self:Debug("purchase or sale")