diff --git a/Libs/LibRaidStatus/LibRaidStatus.lua b/Libs/LibRaidStatus/LibRaidStatus.lua index 5c1ecea7a..efdf86388 100644 --- a/Libs/LibRaidStatus/LibRaidStatus.lua +++ b/Libs/LibRaidStatus/LibRaidStatus.lua @@ -1,6 +1,6 @@ local major = "LibRaidStatus-1.0" -local CONST_LIB_VERSION = 14 +local CONST_LIB_VERSION = 15 LIB_RAID_STATUS_CAN_LOAD = false --declae the library within the LibStub @@ -14,7 +14,6 @@ LIB_RAID_STATUS_CAN_LOAD = false --default values raidStatusLib.inGroup = false - raidStatusLib.CanReceiveComms = false --print failures (when the function return an error) results to chat local CONST_DIAGNOSTIC_ERRORS = false @@ -128,7 +127,7 @@ LIB_RAID_STATUS_CAN_LOAD = false --return true if the lib is allowed to receive comms from other players function raidStatusLib.IsCommAllowed() - return raidStatusLib.CanReceiveComms + return IsInGroup() or IsInRaid() end --stract some indexes of a table @@ -497,7 +496,7 @@ LIB_RAID_STATUS_CAN_LOAD = false --the group has changed, trigger a long timer to send full data --as the timer is unique, a new change to the group will replace and refresh the time --using random time, players won't trigger all at the same time - local randomTime = 4.0 + math.random(1.0, 4.5) + local randomTime = 1.0 + math.random(1.0, 5.5) raidStatusLib.Schedules.NewUniqueTimer(randomTime, raidStatusLib.mainControl.SendFullData, "mainControl", "sendFullData_Schedule") end end, @@ -581,7 +580,6 @@ LIB_RAID_STATUS_CAN_LOAD = false --the game client is fully loadded and all information is available if (raidStatusLib.IsInGroup()) then raidStatusLib.Schedules.NewUniqueTimer(1.0, raidStatusLib.mainControl.SendFullData, "mainControl", "sendFullData_Schedule") - raidStatusLib.CanReceiveComms = true end end @@ -589,7 +587,6 @@ LIB_RAID_STATUS_CAN_LOAD = false --the player entered in a group --schedule to send data raidStatusLib.Schedules.NewUniqueTimer(1.0, raidStatusLib.mainControl.SendFullData, "mainControl", "sendFullData_Schedule") - raidStatusLib.CanReceiveComms = true end raidStatusLib.mainControl.OnLeftGroup = function() @@ -603,7 +600,6 @@ LIB_RAID_STATUS_CAN_LOAD = false table.wipe(raidStatusLib.mainControl.playerAliveStatus) --toggle off comms - raidStatusLib.CanReceiveComms = false end raidStatusLib.mainControl.OnPlayerDeath = function() diff --git a/boot.lua b/boot.lua index e5480e44c..a14189e91 100644 --- a/boot.lua +++ b/boot.lua @@ -4,11 +4,11 @@ _ = nil _detalhes = LibStub("AceAddon-3.0"):NewAddon("_detalhes", "AceTimer-3.0", "AceComm-3.0", "AceSerializer-3.0", "NickTag-1.0") - _detalhes.build_counter = 8316 - _detalhes.alpha_build_counter = 8316 --if this is higher than the regular counter, use it instead + _detalhes.build_counter = 8357 + _detalhes.alpha_build_counter = 8357 --if this is higher than the regular counter, use it instead _detalhes.dont_open_news = true - _detalhes.game_version = "v9.0.2" - _detalhes.userversion = "v9.0.2." .. _detalhes.build_counter + _detalhes.game_version = "v9.0.5" + _detalhes.userversion = "v9.0.5." .. _detalhes.build_counter _detalhes.realversion = 144 --core version, this is used to check API version for scripts and plugins (see alias below) _detalhes.APIVersion = _detalhes.realversion --core version _detalhes.version = _detalhes.userversion .. " (core " .. _detalhes.realversion .. ")" --simple stirng to show to players @@ -29,6 +29,20 @@ do local Loc = _G.LibStub("AceLocale-3.0"):GetLocale( "Details" ) local news = { + {"v9.0.5.8357.144", "March 15th, 2021"}, + "Max amount of segments raised to 40, was 30.", + "Added a 'Sanguine Heal' actor to show how much the void zone healed enemies, shown on Everything mode.", + "Death events are now ignore after the necrolord triggers Forgeborne Reveries.", + "Mythic dungeon settings are reset after importing a profile.", + "Scripts now support Inline text feature.", + "Fixed a rare bug when exporting a profile would result into a bug.", + "Fixed an issue with Spirit Shell overhealing.", + "Fixed a rare bug on dispel toooltips giving errors.", + "Fixed a bug on exporting scripts.", + "Fixed an error given when an a battleground opponent die.", + "Fixed an issue where sometimes entering an arena cause errors.", + "Fixed some issues with pet detection.", + {"v9.0.2.8246.144", "February 17th, 2021"}, "Added healing done to Coach feature (in testing).", "Ignore Forgeborne Reveries healing done (Necrolords ability).", diff --git a/plugins/Details_DataStorage/Details_DataStorage.lua b/plugins/Details_DataStorage/Details_DataStorage.lua index 7493fe09f..e9896d1c5 100644 --- a/plugins/Details_DataStorage/Details_DataStorage.lua +++ b/plugins/Details_DataStorage/Details_DataStorage.lua @@ -1,12 +1,14 @@ -DETAILS_STORAGE_VERSION = 4 +DETAILS_STORAGE_VERSION = 5 function _detalhes:CreateStorageDB() DetailsDataStorage = { VERSION = DETAILS_STORAGE_VERSION, - [14] = {}, --normal mode - [15] = {}, --heroic mode - [16] = {}, --mythic mode + [14] = {}, --normal mode (raid) + [15] = {}, --heroic mode (raid) + [16] = {}, --mythic mode (raid) + ["mythic_plus"] = {}, --(dungeons) + ["saved_encounters"] = {}, --(a segment) } return DetailsDataStorage end @@ -23,7 +25,7 @@ f:SetScript ("OnEvent", function (self, event, addonName) if (DetailsDataStorage.VERSION < DETAILS_STORAGE_VERSION) then --> do revisions - if (DetailsDataStorage.VERSION < 4) then + if (DetailsDataStorage.VERSION < 5) then table.wipe (DetailsDataStorage) DetailsDataStorage = _detalhes:CreateStorageDB() end diff --git a/plugins/Details_DataStorage/Details_DataStorage.toc b/plugins/Details_DataStorage/Details_DataStorage.toc index 2fd095e7b..9e49a94c1 100644 --- a/plugins/Details_DataStorage/Details_DataStorage.toc +++ b/plugins/Details_DataStorage/Details_DataStorage.toc @@ -1,4 +1,4 @@ -## Interface: 90002 +## Interface: 90005 ## Title: Details!: Storage ## Notes: Stores information for Details! Damage Meter ## DefaultState: Enabled diff --git a/plugins/Details_EncounterDetails/Details_EncounterDetails.toc b/plugins/Details_EncounterDetails/Details_EncounterDetails.toc index 69f3dd3bd..14d3027b3 100644 --- a/plugins/Details_EncounterDetails/Details_EncounterDetails.toc +++ b/plugins/Details_EncounterDetails/Details_EncounterDetails.toc @@ -1,4 +1,4 @@ -## Interface: 90002 +## Interface: 90005 ## 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 diff --git a/plugins/Details_RaidCheck/Details_RaidCheck.lua b/plugins/Details_RaidCheck/Details_RaidCheck.lua index 8ca8a834a..da57a9fc7 100644 --- a/plugins/Details_RaidCheck/Details_RaidCheck.lua +++ b/plugins/Details_RaidCheck/Details_RaidCheck.lua @@ -392,7 +392,8 @@ end if (playerTable) then local line = self:GetLine (i) if (line) then - local thisPlayerInfo = playerInfo[playerTable.Name] + + local thisPlayerInfo = playerInfo[playerTable.UnitNameRealm] if (thisPlayerInfo) then local playerCovenantId = thisPlayerInfo.covenantId if (playerCovenantId > 0) then @@ -406,7 +407,7 @@ end end --repair status - local thisPlayerGearInfo = gearInfo[playerTable.Name] + local thisPlayerGearInfo = gearInfo[playerTable.UnitNameRealm] if (thisPlayerGearInfo) then line.RepairStatus:SetText(thisPlayerGearInfo.durability .. "%") else @@ -639,6 +640,7 @@ end for i = 1, iterateAmount do local unitID = groupTypeID .. i local unitName = UnitName (unitID) + local unitNameWithRealm = GetUnitName(unitID, true) local cleuName = _detalhes:GetCLName (unitID) local unitSerial = UnitGUID (unitID) local _, unitClass, unitClassID = UnitClass (unitID) @@ -652,6 +654,7 @@ end tinsert (PlayerData, {unitName, unitClassID, Name = unitName, + UnitNameRealm = unitNameWithRealm, Class = unitClass, Serial = unitSerial, Role = unitRole, diff --git a/plugins/Details_RaidCheck/Details_RaidCheck.toc b/plugins/Details_RaidCheck/Details_RaidCheck.toc index 96125709b..440ff0b32 100644 --- a/plugins/Details_RaidCheck/Details_RaidCheck.toc +++ b/plugins/Details_RaidCheck/Details_RaidCheck.toc @@ -1,4 +1,4 @@ -## Interface: 90002 +## Interface: 90005 ## 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 diff --git a/plugins/Details_Streamer/Details_Streamer.lua b/plugins/Details_Streamer/Details_Streamer.lua index a7699181b..0dc4ac348 100644 --- a/plugins/Details_Streamer/Details_Streamer.lua +++ b/plugins/Details_Streamer/Details_Streamer.lua @@ -337,7 +337,7 @@ local function CreatePluginFrames() if (castInfo and castInfo.Interrupted and castInfo.InterruptedPct) then CooldownFrame_SetDisplayAsPercentage(square.cooldown, abs(castInfo.InterruptedPct - 1)) - square.interruptedTexture:Show() + --square.interruptedTexture:Show() return end @@ -372,6 +372,7 @@ local function CreatePluginFrames() f.interruptedTexture = f:CreateTexture(nil, "overlay") f.interruptedTexture:SetColorTexture(1, 0, 0, 0.4) f.interruptedTexture:SetAllPoints() + f.interruptedTexture:Hide() local cooldownFrame = CreateFrame("cooldown", "$parentCooldown", f, "CooldownFrameTemplate, BackdropTemplate") cooldownFrame:SetAllPoints() @@ -427,7 +428,7 @@ local function CreatePluginFrames() StreamOverlay:UpdateCooldownFrame(square, true, startTime, endTime, castinfo) if (castinfo.Interrupted) then - square.interruptedTexture:Show() + --square.interruptedTexture:Show() else square.interruptedTexture:Hide() end diff --git a/plugins/Details_Streamer/Details_Streamer.toc b/plugins/Details_Streamer/Details_Streamer.toc index d99e34633..55f1e6375 100644 --- a/plugins/Details_Streamer/Details_Streamer.toc +++ b/plugins/Details_Streamer/Details_Streamer.toc @@ -1,4 +1,4 @@ -## Interface: 90002 +## Interface: 90005 ## Title: Details!: Streamer (plugin) ## Notes: Show which spells you are casting, viewers can see what are you doing and follow your steps. ## RequiredDeps: Details diff --git a/plugins/Details_TinyThreat/Details_TinyThreat.toc b/plugins/Details_TinyThreat/Details_TinyThreat.toc index 8a8ba6b90..6d9a6b45d 100644 --- a/plugins/Details_TinyThreat/Details_TinyThreat.toc +++ b/plugins/Details_TinyThreat/Details_TinyThreat.toc @@ -1,4 +1,4 @@ -## Interface: 90002 +## Interface: 90005 ## 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 diff --git a/plugins/Details_Vanguard/Details_Vanguard.toc b/plugins/Details_Vanguard/Details_Vanguard.toc index bb28bc42f..e4b82843b 100644 --- a/plugins/Details_Vanguard/Details_Vanguard.toc +++ b/plugins/Details_Vanguard/Details_Vanguard.toc @@ -1,4 +1,4 @@ -## Interface: 90002 +## Interface: 90005 ## Title: Details!: Vanguard (plugin) ## Notes: Show the health and debuffs for tanks in your group. ## SavedVariablesPerCharacter: _detalhes_databaseVanguard