Fixing issue with the Encounter Breakdown showing errors on wow11 and tooltips not clearing the spell list on them.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user