Fixing issue with the Encounter Breakdown showing errors on wow11 and tooltips not clearing the spell list on them.

This commit is contained in:
Tercio Jose
2024-07-10 12:09:23 -03:00
committed by andrew6180
parent d458995b5a
commit bcee5fc71a
2 changed files with 19 additions and 12 deletions
@@ -1,13 +1,17 @@
DETAILS_STORAGE_VERSION = 6
DETAILS_STORAGE_VERSION = 7
function Details:CreateStorageDB()
DetailsDataStorage = {
VERSION = DETAILS_STORAGE_VERSION,
[1] = {}, --normal mode (raid)
[2] = {}, --heroic mode (raid)
[3] = {}, --mythic mode (raid)
[4] = {}, --ascended mode (raid)
normal = {}, --raid difficulties
heroic = {}, --raid difficulties
mythic = {}, --raid difficulties
ascended = {}, --raid difficulties
--[14] = {}, --normal mode (raid)
--[15] = {}, --heroic mode (raid)
--[16] = {}, --mythic mode (raid)
["totalkills"] = {},
["mythic_plus"] = {}, --(dungeons)
["saved_encounters"] = {}, --(a segment)
}
@@ -22,12 +26,10 @@ f:SetScript("OnEvent", function(self, event, addonName)
if (addonName == "Details_DataStorage") then
DetailsDataStorage = DetailsDataStorage or Details:CreateStorageDB()
DetailsDataStorage.Data = {}
if (DetailsDataStorage.VERSION < DETAILS_STORAGE_VERSION) then
--> do revisions
if (DetailsDataStorage.VERSION < 6) then
table.wipe(DetailsDataStorage)
DetailsDataStorage = Details:CreateStorageDB()
end
table.wipe(DetailsDataStorage)
DetailsDataStorage = Details:CreateStorageDB()
end
if (Details and Details.debug) then