From fd25f6e75318803351904935e142d376c9103d08 Mon Sep 17 00:00:00 2001 From: Tercio Jose Date: Mon, 5 Dec 2022 13:32:10 -0300 Subject: [PATCH] Added more trinkets to the list of trinkets --- boot.lua | 10 ++++++++-- frames/window_playerbreakdown.lua | 10 +++++++++- functions/spellcache.lua | 7 +++++++ 3 files changed, 24 insertions(+), 3 deletions(-) diff --git a/boot.lua b/boot.lua index 5e6418c1a..b343f6ed7 100644 --- a/boot.lua +++ b/boot.lua @@ -6,8 +6,8 @@ local addonName, Details222 = ... local version, build, date, tocversion = GetBuildInfo() - _detalhes.build_counter = 10304 - _detalhes.alpha_build_counter = 10304 --if this is higher than the regular counter, use it instead + _detalhes.build_counter = 10333 + _detalhes.alpha_build_counter = 10333 --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 @@ -86,6 +86,12 @@ do local Loc = _G.LibStub("AceLocale-3.0"):GetLocale( "Details" ) local news = { + {"v10.0.2.10333.147", "Nov 18th, 2022"}, + "Added two checkboxes for Merge Pet and Player spell on the Breakdown window.", + "Added uptime for Hunter's Pet Frenzy Buff, it now show in the 'Auras' tab in the Breakdown Window.", + "/played is showing something new!", + "Options panel now closes by pressing Escape (Flamanis).", + {"v10.0.2.10277.146", "Nov 18th, 2022"}, "REMINDER: '/details coach' to get damage/healing/deaths in real time as the 21st person (coach) for the next raid tier in dragonflight.", "New Compare tab: recreated from scratch, this new Compare has no player limitation, pets merged, bigger lines.", diff --git a/frames/window_playerbreakdown.lua b/frames/window_playerbreakdown.lua index 0b4df1ca6..28d92dd77 100644 --- a/frames/window_playerbreakdown.lua +++ b/frames/window_playerbreakdown.lua @@ -170,7 +170,15 @@ function _detalhes:AbreJanelaInfo (jogador, from_att_change, refresh, ShiftKeyDo end end - info:SetPoint("center", _G.UIParent, "center", 0, 0) + local okay = pcall(function() + info:SetPoint("center", _G.UIParent, "center", 0, 0) + end) + + if (not okay) then + info:ClearAllPoints() + info:SetPoint("center", _G.UIParent, "center", 0, 0) + end + info:SetUserPlaced(false) info:SetDontSavePosition(true) info.bHasInitialized = true diff --git a/functions/spellcache.lua b/functions/spellcache.lua index e6b6bf6c2..33d912cf8 100644 --- a/functions/spellcache.lua +++ b/functions/spellcache.lua @@ -241,6 +241,13 @@ do [387036] = {name = GetSpellInfo(387036) .. formatTextForItem(193748)}, --trinket: Kyrakka's Searing Embers (heal) [397376] = {name = GetSpellInfo(397376) .. formatTextForItem(193748), isPassive = true, itemId = 193748}, --trinket: Kyrakka's Searing Embers (damage) --[] = {name = GetSpellInfo() .. formatTextForItem(193757), isPassive = true}, --trinket: Ruby Whelp Shell + + [214985] = {name = GetSpellInfo(214985) .. formatTextForItem(137486)}, --trinket: Windscar Whetstone + [384004] = {name = GetSpellInfo(384004) .. formatTextForItem(193815)}, --trinket: Homeland Raid Horn + --[] = {name = GetSpellInfo() .. formatTextForItem()}, --trinket: Mutated Magmammoth Scale - did no proc + + --/dump C_Item.GetItemNameByID(137486) --to check an item + --default tooltip script gets the item id } for spellId, spellCustomization in pairs(dragonflightTrinkets) do