Mercurial > wow > askmrrobot
comparison Export.lua @ 118:5cb881417bbf v55
Added Antorus to auto-logging.
author | yellowfive |
---|---|
date | Fri, 24 Nov 2017 19:46:27 -0800 |
parents | bccce18e12cb |
children | e31b02b24488 |
comparison
equal
deleted
inserted
replaced
117:35fec08d69b9 | 118:5cb881417bbf |
---|---|
349 local spec = Amr.ArtifactIdToSpecNumber[itemID] | 349 local spec = Amr.ArtifactIdToSpecNumber[itemID] |
350 | 350 |
351 if spec then | 351 if spec then |
352 | 352 |
353 -- sometimes this event can fire when no crucible data is available, don't overwrite non-blank crucible data with blank crucible data | 353 -- sometimes this event can fire when no crucible data is available, don't overwrite non-blank crucible data with blank crucible data |
354 local badEquipped = false | |
354 if Amr.db.char.Artifacts[spec] then | 355 if Amr.db.char.Artifacts[spec] then |
355 local oldCrucible = Amr.db.char.Artifacts[spec].Crucible | 356 local oldCrucible = Amr.db.char.Artifacts[spec].Crucible |
356 if oldCrucible then | 357 if oldCrucible then |
357 if #oldCrucible.Equipped > 0 and oldCrucible.Equipped[1] and not equipped[1] then | 358 if #oldCrucible.Equipped > 0 and oldCrucible.Equipped[1] and not equipped[1] then |
358 return | 359 badEquipped = true |
359 end | 360 end |
360 end | 361 end |
361 end | 362 end |
362 | 363 |
363 local dataz = Amr.db.char.Artifacts[spec] | 364 local dataz = Amr.db.char.Artifacts[spec] |
372 Previewed = {} | 373 Previewed = {} |
373 } | 374 } |
374 end | 375 end |
375 | 376 |
376 local crucible = dataz.Crucible | 377 local crucible = dataz.Crucible |
377 crucible.Equipped = equipped | 378 |
379 if not badEquipped then | |
380 crucible.Equipped = equipped | |
381 end | |
382 | |
378 if preview then | 383 if preview then |
379 local previewKey = {} | 384 local previewKey = {} |
380 table.insert(previewKey, preview.ItemLink) | 385 table.insert(previewKey, preview.ItemLink) |
381 for i,v in ipairs(preview.Powers) do | 386 for i,v in ipairs(preview.Powers) do |
382 table.insert(previewKey, v .. "=" .. tostring(preview.Active[i])) | 387 table.insert(previewKey, v .. "=" .. tostring(preview.Active[i])) |