Mercurial > wow > itemauditor
comparison Modules/CraftingRules.lua @ 154:090e466fd956 Release 2010-12-09
Fixed a bug that caused an error if you had a crafting rule that doesn't include a bonus.
| author | Asa Ayers <Asa.Ayers@Gmail.com> |
|---|---|
| date | Thu, 09 Dec 2010 22:03:48 -0800 |
| parents | 706b173b0fa1 |
| children |
comparison
equal
deleted
inserted
replaced
| 153:613fd4bc6999 | 154:090e466fd956 |
|---|---|
| 209 end | 209 end |
| 210 | 210 |
| 211 local function runRule(rule, itemName, itemID, data) | 211 local function runRule(rule, itemName, itemID, data) |
| 212 local searches = {strsplit(',', rule.search:upper())} | 212 local searches = {strsplit(',', rule.search:upper())} |
| 213 local bonus = 0 | 213 local bonus = 0 |
| 214 if data.count == 0 then | 214 if data.count == 0 and rule.bonus_queue then |
| 215 bonus = rule.bonus_queue | 215 bonus = rule.bonus_queue |
| 216 end | 216 end |
| 217 | 217 |
| 218 for _, search in pairs(searches) do | 218 for _, search in pairs(searches) do |
| 219 search = search:trim() | 219 search = search:trim() |
