Mercurial > wow > itemauditor
comparison Modules/Events.lua @ 91:e2dab8e34b32
Fixed an issue where trading an item and gold in exchange for a different item was not considering the gold in the price of the new item.
| author | Asa Ayers <Asa.Ayers@Gmail.com> |
|---|---|
| date | Wed, 11 Aug 2010 20:03:05 -0700 |
| parents | 64166ba5209a |
| children | 71053b1f6c1c |
comparison
equal
deleted
inserted
replaced
| 90:fab2c4341602 | 91:e2dab8e34b32 |
|---|---|
| 288 local _, itemCost, count = self:GetItemCost(link, change) | 288 local _, itemCost, count = self:GetItemCost(link, change) |
| 289 self:SaveValue(link, itemCost * change, change) | 289 self:SaveValue(link, itemCost * change, change) |
| 290 | 290 |
| 291 totalChange = totalChange + (itemCost * abs(change)) | 291 totalChange = totalChange + (itemCost * abs(change)) |
| 292 end | 292 end |
| 293 totalChange = totalChange - diff.money | |
| 293 | 294 |
| 294 distributeValue(self, totalChange, positive) | 295 distributeValue(self, totalChange, positive) |
| 295 else | 296 else |
| 296 self:Debug("No match in UpdateAudit.") | 297 self:Debug("No match in UpdateAudit.") |
| 297 end | 298 end |
