From 72558971345bca3d979c75ce33a386d4638a7ac3 Mon Sep 17 00:00:00 2001 From: Tercio Jose Date: Wed, 18 Jan 2023 11:01:56 -0300 Subject: [PATCH] release for wrath toc update --- Libs/LibOpenRaid/GetPlayerInformation.lua | 21 ++++++++++++------- boot.lua | 4 ++-- .../Details_DataStorage-BCC.toc | 9 -------- .../Details_DataStorage-Wrath.toc | 9 -------- .../Details_DataStorage_TBC.toc | 9 -------- .../Details_EncounterDetails-BCC.toc | 12 ----------- .../Details_EncounterDetails-Wrath.toc | 12 ----------- .../Details_EncounterDetails_TBC.toc | 17 --------------- .../Details_RaidCheck-BCC.toc | 10 --------- .../Details_RaidCheck-Wrath.toc | 10 --------- .../Details_RaidCheck_TBC.toc | 10 --------- .../Details_Streamer/Details_Streamer-BCC.toc | 11 ---------- .../Details_Streamer-Wrath.toc | 11 ---------- .../Details_Streamer/Details_Streamer_TBC.toc | 11 ---------- .../Details_TinyThreat-BCC.toc | 14 ------------- .../Details_TinyThreat-Classic.toc | 14 ------------- .../Details_TinyThreat-Wrath.toc | 14 ------------- .../Details_TinyThreat_TBC.toc | 14 ------------- .../Details_TinyThreat_Vanilla.toc | 14 ------------- .../Details_Vanguard/Details_Vanguard-BCC.toc | 12 ----------- .../Details_Vanguard-Wrath.toc | 12 ----------- .../Details_Vanguard/Details_Vanguard_TBC.toc | 12 ----------- 22 files changed, 16 insertions(+), 246 deletions(-) delete mode 100644 plugins/Details_DataStorage/Details_DataStorage-BCC.toc delete mode 100644 plugins/Details_DataStorage/Details_DataStorage-Wrath.toc delete mode 100644 plugins/Details_DataStorage/Details_DataStorage_TBC.toc delete mode 100644 plugins/Details_EncounterDetails/Details_EncounterDetails-BCC.toc delete mode 100644 plugins/Details_EncounterDetails/Details_EncounterDetails-Wrath.toc delete mode 100644 plugins/Details_EncounterDetails/Details_EncounterDetails_TBC.toc delete mode 100644 plugins/Details_RaidCheck/Details_RaidCheck-BCC.toc delete mode 100644 plugins/Details_RaidCheck/Details_RaidCheck-Wrath.toc delete mode 100644 plugins/Details_RaidCheck/Details_RaidCheck_TBC.toc delete mode 100644 plugins/Details_Streamer/Details_Streamer-BCC.toc delete mode 100644 plugins/Details_Streamer/Details_Streamer-Wrath.toc delete mode 100644 plugins/Details_Streamer/Details_Streamer_TBC.toc delete mode 100644 plugins/Details_TinyThreat/Details_TinyThreat-BCC.toc delete mode 100644 plugins/Details_TinyThreat/Details_TinyThreat-Classic.toc delete mode 100644 plugins/Details_TinyThreat/Details_TinyThreat-Wrath.toc delete mode 100644 plugins/Details_TinyThreat/Details_TinyThreat_TBC.toc delete mode 100644 plugins/Details_TinyThreat/Details_TinyThreat_Vanilla.toc delete mode 100644 plugins/Details_Vanguard/Details_Vanguard-BCC.toc delete mode 100644 plugins/Details_Vanguard/Details_Vanguard-Wrath.toc delete mode 100644 plugins/Details_Vanguard/Details_Vanguard_TBC.toc diff --git a/Libs/LibOpenRaid/GetPlayerInformation.lua b/Libs/LibOpenRaid/GetPlayerInformation.lua index e94e00723..3cf600ec6 100644 --- a/Libs/LibOpenRaid/GetPlayerInformation.lua +++ b/Libs/LibOpenRaid/GetPlayerInformation.lua @@ -644,7 +644,7 @@ function openRaidLib.CooldownManager.GetPlayerCooldownList() end end - return {} + return {}, {} end --aura frame handles only UNIT_AURA events to grab the duration of the buff placed by the aura @@ -693,13 +693,20 @@ local getAuraDuration = function(spellId) end end +---get the duration of a buff placed by a spell +---@param spellId number +---@return number duration function openRaidLib.CooldownManager.GetSpellBuffDuration(spellId) return getAuraDuration(spellId) end ---check if a player cooldown is ready or if is in cooldown ---@spellId: the spellId to check for cooldown ---return timeLeft, charges, startTimeOffset, duration, buffDuration +---check if a player cooldown is ready or if is in cooldown +---@spellId: the spellId to check for cooldown +---@return number timeLeft +---@return number charges +---@return number startTimeOffset +---@return number duration +---@return number buffDuration function openRaidLib.CooldownManager.GetPlayerCooldownStatus(spellId) --check if is a charge spell local cooldownInfo = LIB_OPEN_RAID_COOLDOWNS_INFO[spellId] @@ -713,7 +720,7 @@ function openRaidLib.CooldownManager.GetPlayerCooldownStatus(spellId) --return the time to the next charge local timeLeft = start + duration - GetTime() local startTimeOffset = start - GetTime() - return ceil(timeLeft), chargesAvailable, startTimeOffset, duration, buffDuration --time left, charges, startTime, duration, buffDuration + return ceil(timeLeft), chargesAvailable, startTimeOffset, duration, buffDuration end else local start, duration = GetSpellCooldown(spellId) @@ -748,7 +755,7 @@ do end end - function openRaidLib.AuraTracker.ScanPlayerAuras(unitId) + function openRaidLib.AuraTracker.ScanUnitAuras(unitId) local batchCount = nil local usePackedAura = true openRaidLib.AuraTracker.CurrentUnitId = unitId @@ -775,7 +782,7 @@ do auraFrameEvent:RegisterUnitEvent("UNIT_AURA", unitId) auraFrameEvent:SetScript("OnEvent", function() - openRaidLib.AuraTracker.ScanPlayerAuras(unitId) + openRaidLib.AuraTracker.ScanUnitAuras(unitId) end) end diff --git a/boot.lua b/boot.lua index 06c941894..155afb82e 100644 --- a/boot.lua +++ b/boot.lua @@ -7,8 +7,8 @@ local addonName, Details222 = ... local version, build, date, tocversion = GetBuildInfo() - _detalhes.build_counter = 10407 - _detalhes.alpha_build_counter = 10407 --if this is higher than the regular counter, use it instead + _detalhes.build_counter = 10408 + _detalhes.alpha_build_counter = 10408 --if this is higher than the regular counter, use it instead _detalhes.dont_open_news = true _detalhes.game_version = version _detalhes.userversion = version .. " " .. _detalhes.build_counter diff --git a/plugins/Details_DataStorage/Details_DataStorage-BCC.toc b/plugins/Details_DataStorage/Details_DataStorage-BCC.toc deleted file mode 100644 index c1c905b0e..000000000 --- a/plugins/Details_DataStorage/Details_DataStorage-BCC.toc +++ /dev/null @@ -1,9 +0,0 @@ -## Interface: 20504 -## Title: Details!: Storage -## Notes: Stores information for Details! Damage Meter -## DefaultState: Enabled -## LoadOnDemand: 1 -## Dependencies: Details -## SavedVariables: DetailsDataStorage - -Details_DataStorage.lua diff --git a/plugins/Details_DataStorage/Details_DataStorage-Wrath.toc b/plugins/Details_DataStorage/Details_DataStorage-Wrath.toc deleted file mode 100644 index f37d96e8b..000000000 --- a/plugins/Details_DataStorage/Details_DataStorage-Wrath.toc +++ /dev/null @@ -1,9 +0,0 @@ -## Interface: 30401 -## Title: Details!: Storage -## Notes: Stores information for Details! Damage Meter -## DefaultState: Enabled -## LoadOnDemand: 1 -## Dependencies: Details -## SavedVariables: DetailsDataStorage - -Details_DataStorage.lua diff --git a/plugins/Details_DataStorage/Details_DataStorage_TBC.toc b/plugins/Details_DataStorage/Details_DataStorage_TBC.toc deleted file mode 100644 index c1c905b0e..000000000 --- a/plugins/Details_DataStorage/Details_DataStorage_TBC.toc +++ /dev/null @@ -1,9 +0,0 @@ -## Interface: 20504 -## Title: Details!: Storage -## Notes: Stores information for Details! Damage Meter -## DefaultState: Enabled -## LoadOnDemand: 1 -## Dependencies: Details -## SavedVariables: DetailsDataStorage - -Details_DataStorage.lua diff --git a/plugins/Details_EncounterDetails/Details_EncounterDetails-BCC.toc b/plugins/Details_EncounterDetails/Details_EncounterDetails-BCC.toc deleted file mode 100644 index 2264e525e..000000000 --- a/plugins/Details_EncounterDetails/Details_EncounterDetails-BCC.toc +++ /dev/null @@ -1,12 +0,0 @@ -## Interface: 20504 -## Title: Details!: Encounter Breakdown (plugin) -## Notes: Show detailed information about a boss encounter. Also provide damage per phase, graphic charts, easy weakauras creation. -## RequiredDeps: Details -## OptionalDeps: Ace3 -## SavedVariablesPerCharacter: EncounterDetailsDB - -enUS.lua -ptBR.lua -frames.lua - -Details_EncounterDetails.lua \ No newline at end of file diff --git a/plugins/Details_EncounterDetails/Details_EncounterDetails-Wrath.toc b/plugins/Details_EncounterDetails/Details_EncounterDetails-Wrath.toc deleted file mode 100644 index d72d4e1f4..000000000 --- a/plugins/Details_EncounterDetails/Details_EncounterDetails-Wrath.toc +++ /dev/null @@ -1,12 +0,0 @@ -## Interface: 30401 -## Title: Details!: Encounter Breakdown (plugin) -## Notes: Show detailed information about a boss encounter. Also provide damage per phase, graphic charts, easy weakauras creation. -## RequiredDeps: Details -## OptionalDeps: Ace3 -## SavedVariablesPerCharacter: EncounterDetailsDB - -enUS.lua -ptBR.lua -frames.lua - -Details_EncounterDetails.lua \ No newline at end of file diff --git a/plugins/Details_EncounterDetails/Details_EncounterDetails_TBC.toc b/plugins/Details_EncounterDetails/Details_EncounterDetails_TBC.toc deleted file mode 100644 index 6fbfcd2a9..000000000 --- a/plugins/Details_EncounterDetails/Details_EncounterDetails_TBC.toc +++ /dev/null @@ -1,17 +0,0 @@ -## Interface: 20504 -## Title: Details!: Encounter Breakdown (plugin) -## Notes: Show detailed information about a boss encounter. Also provide damage per phase, graphic charts, easy weakauras creation. -## RequiredDeps: Details -## OptionalDeps: Ace3 -## SavedVariablesPerCharacter: EncounterDetailsDB - - -#@no-lib-strip@ -embeds.xml -#@end-no-lib-strip@ - -enUS.lua -ptBR.lua -frames.lua - -Details_EncounterDetails.lua \ No newline at end of file diff --git a/plugins/Details_RaidCheck/Details_RaidCheck-BCC.toc b/plugins/Details_RaidCheck/Details_RaidCheck-BCC.toc deleted file mode 100644 index a501dc105..000000000 --- a/plugins/Details_RaidCheck/Details_RaidCheck-BCC.toc +++ /dev/null @@ -1,10 +0,0 @@ -## Interface: 20504 -## Title: Details!: Raid Check (plugin) -## Notes: Show talents and item level for all members in your group, also shows food and flask state. -## RequiredDeps: Details - -#@no-lib-strip@ -embeds.xml -#@end-no-lib-strip@ - -Details_RaidCheck.lua \ No newline at end of file diff --git a/plugins/Details_RaidCheck/Details_RaidCheck-Wrath.toc b/plugins/Details_RaidCheck/Details_RaidCheck-Wrath.toc deleted file mode 100644 index 0eed27858..000000000 --- a/plugins/Details_RaidCheck/Details_RaidCheck-Wrath.toc +++ /dev/null @@ -1,10 +0,0 @@ -## Interface: 30401 -## Title: Details!: Raid Check (plugin) -## Notes: Show talents and item level for all members in your group, also shows food and flask state. -## RequiredDeps: Details - -#@no-lib-strip@ -embeds.xml -#@end-no-lib-strip@ - -Details_RaidCheck.lua \ No newline at end of file diff --git a/plugins/Details_RaidCheck/Details_RaidCheck_TBC.toc b/plugins/Details_RaidCheck/Details_RaidCheck_TBC.toc deleted file mode 100644 index a501dc105..000000000 --- a/plugins/Details_RaidCheck/Details_RaidCheck_TBC.toc +++ /dev/null @@ -1,10 +0,0 @@ -## Interface: 20504 -## Title: Details!: Raid Check (plugin) -## Notes: Show talents and item level for all members in your group, also shows food and flask state. -## RequiredDeps: Details - -#@no-lib-strip@ -embeds.xml -#@end-no-lib-strip@ - -Details_RaidCheck.lua \ No newline at end of file diff --git a/plugins/Details_Streamer/Details_Streamer-BCC.toc b/plugins/Details_Streamer/Details_Streamer-BCC.toc deleted file mode 100644 index dc6ae393c..000000000 --- a/plugins/Details_Streamer/Details_Streamer-BCC.toc +++ /dev/null @@ -1,11 +0,0 @@ -## Interface: 20504 -## Title: Details!: Streamer (plugin) -## Notes: Show which spells you are casting, viewers can see what are you doing and follow your steps. -## RequiredDeps: Details -## SavedVariables: Details_StreamerDB - -#@no-lib-strip@ -embeds.xml -#@end-no-lib-strip@ - -Details_Streamer.lua \ No newline at end of file diff --git a/plugins/Details_Streamer/Details_Streamer-Wrath.toc b/plugins/Details_Streamer/Details_Streamer-Wrath.toc deleted file mode 100644 index a4069b880..000000000 --- a/plugins/Details_Streamer/Details_Streamer-Wrath.toc +++ /dev/null @@ -1,11 +0,0 @@ -## Interface: 30401 -## Title: Details!: Streamer (plugin) -## Notes: Show which spells you are casting, viewers can see what are you doing and follow your steps. -## RequiredDeps: Details -## SavedVariables: Details_StreamerDB - -#@no-lib-strip@ -embeds.xml -#@end-no-lib-strip@ - -Details_Streamer.lua \ No newline at end of file diff --git a/plugins/Details_Streamer/Details_Streamer_TBC.toc b/plugins/Details_Streamer/Details_Streamer_TBC.toc deleted file mode 100644 index dc6ae393c..000000000 --- a/plugins/Details_Streamer/Details_Streamer_TBC.toc +++ /dev/null @@ -1,11 +0,0 @@ -## Interface: 20504 -## Title: Details!: Streamer (plugin) -## Notes: Show which spells you are casting, viewers can see what are you doing and follow your steps. -## RequiredDeps: Details -## SavedVariables: Details_StreamerDB - -#@no-lib-strip@ -embeds.xml -#@end-no-lib-strip@ - -Details_Streamer.lua \ No newline at end of file diff --git a/plugins/Details_TinyThreat/Details_TinyThreat-BCC.toc b/plugins/Details_TinyThreat/Details_TinyThreat-BCC.toc deleted file mode 100644 index a4d82ff81..000000000 --- a/plugins/Details_TinyThreat/Details_TinyThreat-BCC.toc +++ /dev/null @@ -1,14 +0,0 @@ -## Interface: 20504 -## Title: Details!: Tiny Threat (plugin) -## Notes: Threat meter plugin, show threat for group members in the window. Select it from the Plugin menu in the Orange Cogwheel. -## RequiredDeps: Details -## OptionalDeps: Ace3 - -#@no-lib-strip@ -embeds.xml -#@end-no-lib-strip@ - -enUS.lua -ptBR.lua - -Details_TinyThreat.lua diff --git a/plugins/Details_TinyThreat/Details_TinyThreat-Classic.toc b/plugins/Details_TinyThreat/Details_TinyThreat-Classic.toc deleted file mode 100644 index 5a58ed4e4..000000000 --- a/plugins/Details_TinyThreat/Details_TinyThreat-Classic.toc +++ /dev/null @@ -1,14 +0,0 @@ -## Interface: 11401 -## Title: Details!: Tiny Threat (plugin) -## Notes: Threat meter plugin, show threat for group members in the window. Select it from the Plugin menu in the Orange Cogwheel. -## RequiredDeps: Details -## OptionalDeps: Ace3 - -#@no-lib-strip@ -embeds.xml -#@end-no-lib-strip@ - -enUS.lua -ptBR.lua - -Details_TinyThreat.lua diff --git a/plugins/Details_TinyThreat/Details_TinyThreat-Wrath.toc b/plugins/Details_TinyThreat/Details_TinyThreat-Wrath.toc deleted file mode 100644 index 56b719c47..000000000 --- a/plugins/Details_TinyThreat/Details_TinyThreat-Wrath.toc +++ /dev/null @@ -1,14 +0,0 @@ -## Interface: 30401 -## Title: Details!: Tiny Threat (plugin) -## Notes: Threat meter plugin, show threat for group members in the window. Select it from the Plugin menu in the Orange Cogwheel. -## RequiredDeps: Details -## OptionalDeps: Ace3 - -#@no-lib-strip@ -embeds.xml -#@end-no-lib-strip@ - -enUS.lua -ptBR.lua - -Details_TinyThreat.lua diff --git a/plugins/Details_TinyThreat/Details_TinyThreat_TBC.toc b/plugins/Details_TinyThreat/Details_TinyThreat_TBC.toc deleted file mode 100644 index a4d82ff81..000000000 --- a/plugins/Details_TinyThreat/Details_TinyThreat_TBC.toc +++ /dev/null @@ -1,14 +0,0 @@ -## Interface: 20504 -## Title: Details!: Tiny Threat (plugin) -## Notes: Threat meter plugin, show threat for group members in the window. Select it from the Plugin menu in the Orange Cogwheel. -## RequiredDeps: Details -## OptionalDeps: Ace3 - -#@no-lib-strip@ -embeds.xml -#@end-no-lib-strip@ - -enUS.lua -ptBR.lua - -Details_TinyThreat.lua diff --git a/plugins/Details_TinyThreat/Details_TinyThreat_Vanilla.toc b/plugins/Details_TinyThreat/Details_TinyThreat_Vanilla.toc deleted file mode 100644 index 5a58ed4e4..000000000 --- a/plugins/Details_TinyThreat/Details_TinyThreat_Vanilla.toc +++ /dev/null @@ -1,14 +0,0 @@ -## Interface: 11401 -## Title: Details!: Tiny Threat (plugin) -## Notes: Threat meter plugin, show threat for group members in the window. Select it from the Plugin menu in the Orange Cogwheel. -## RequiredDeps: Details -## OptionalDeps: Ace3 - -#@no-lib-strip@ -embeds.xml -#@end-no-lib-strip@ - -enUS.lua -ptBR.lua - -Details_TinyThreat.lua diff --git a/plugins/Details_Vanguard/Details_Vanguard-BCC.toc b/plugins/Details_Vanguard/Details_Vanguard-BCC.toc deleted file mode 100644 index 4c14b6437..000000000 --- a/plugins/Details_Vanguard/Details_Vanguard-BCC.toc +++ /dev/null @@ -1,12 +0,0 @@ -## Interface: 20504 -## Title: Details!: Vanguard (plugin) -## Notes: Show the health and debuffs for tanks in your group. -## SavedVariablesPerCharacter: _detalhes_databaseVanguard -## RequiredDeps: Details -## OptionalDeps: Ace3 - -#@no-lib-strip@ -embeds.xml -#@end-no-lib-strip@ - -Details_Vanguard.lua \ No newline at end of file diff --git a/plugins/Details_Vanguard/Details_Vanguard-Wrath.toc b/plugins/Details_Vanguard/Details_Vanguard-Wrath.toc deleted file mode 100644 index 917c8038f..000000000 --- a/plugins/Details_Vanguard/Details_Vanguard-Wrath.toc +++ /dev/null @@ -1,12 +0,0 @@ -## Interface: 30401 -## Title: Details!: Vanguard (plugin) -## Notes: Show the health and debuffs for tanks in your group. -## SavedVariablesPerCharacter: _detalhes_databaseVanguard -## RequiredDeps: Details -## OptionalDeps: Ace3 - -#@no-lib-strip@ -embeds.xml -#@end-no-lib-strip@ - -Details_Vanguard.lua \ No newline at end of file diff --git a/plugins/Details_Vanguard/Details_Vanguard_TBC.toc b/plugins/Details_Vanguard/Details_Vanguard_TBC.toc deleted file mode 100644 index 4c14b6437..000000000 --- a/plugins/Details_Vanguard/Details_Vanguard_TBC.toc +++ /dev/null @@ -1,12 +0,0 @@ -## Interface: 20504 -## Title: Details!: Vanguard (plugin) -## Notes: Show the health and debuffs for tanks in your group. -## SavedVariablesPerCharacter: _detalhes_databaseVanguard -## RequiredDeps: Details -## OptionalDeps: Ace3 - -#@no-lib-strip@ -embeds.xml -#@end-no-lib-strip@ - -Details_Vanguard.lua \ No newline at end of file