Skip to content

Commit

Permalink
General Fixes after major patch
Browse files Browse the repository at this point in the history
  • Loading branch information
Tercioo committed Jan 17, 2024
1 parent 159c9c5 commit 4eff7b2
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 12 deletions.
4 changes: 2 additions & 2 deletions Libs/LibOpenRaid/LibOpenRaid.lua
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ if (WOW_PROJECT_ID ~= WOW_PROJECT_MAINLINE and not isExpansion_Dragonflight()) t
end

local major = "LibOpenRaid-1.0"
local CONST_LIB_VERSION = 121
local CONST_LIB_VERSION = 122

if (LIB_OPEN_RAID_MAX_VERSION) then
if (CONST_LIB_VERSION <= LIB_OPEN_RAID_MAX_VERSION) then
Expand Down Expand Up @@ -2699,7 +2699,7 @@ openRaidLib.commHandler.RegisterComm(CONST_COMM_COOLDOWNREQUEST_PREFIX, openRaid
end

if (IsInGuild()) then
openRaidLib.Schedules.NewUniqueTimer(math.random(0, 10) + math.random(), openRaidLib.KeystoneInfoManager.SendPlayerKeystoneInfoToGuild, "KeystoneInfoManager", "sendKeystoneInfoToGuild_Schedule")
openRaidLib.Schedules.NewUniqueTimer(math.random(0, 6) + math.random(), openRaidLib.KeystoneInfoManager.SendPlayerKeystoneInfoToGuild, "KeystoneInfoManager", "sendKeystoneInfoToGuild_Schedule")
end
end
openRaidLib.commHandler.RegisterComm(CONST_COMM_KEYSTONE_DATAREQUEST_PREFIX, openRaidLib.KeystoneInfoManager.OnReceiveRequestData)
Expand Down
4 changes: 2 additions & 2 deletions boot.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
local addonName, Details222 = ...
local version, build, date, tocversion = GetBuildInfo()

Details.build_counter = 12221
Details.alpha_build_counter = 12221 --if this is higher than the regular counter, use it instead
Details.build_counter = 12222
Details.alpha_build_counter = 12222 --if this is higher than the regular counter, use it instead
Details.dont_open_news = true
Details.game_version = version
Details.userversion = version .. " " .. Details.build_counter
Expand Down
6 changes: 5 additions & 1 deletion classes/class_damage.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3035,8 +3035,9 @@ function Details:ShowExtraStatusbar(thisLine, amount, extraAmount, totalAmount,

--check if the extra bar will be bigger than the window
local windowWidth = instanceObject:GetSize()
local lineWidth = thisLine:GetWidth()
local lineWidth = thisLine:GetWidth() * (amount/topAmount)
local maxExtraBarWidth = windowWidth - lineWidth - initialOffset

if (extraStatusbarWidth > maxExtraBarWidth) then
extraStatusbarWidth = maxExtraBarWidth
end
Expand Down Expand Up @@ -3455,6 +3456,9 @@ function damageClass.PredictedAugSpellsOnEnter(self)
end
end
end

GameCooltip:AddLine(" ")
GameCooltip:AddIcon("", 1, 1, 5, 5)
end
end
else
Expand Down
2 changes: 1 addition & 1 deletion core/aura_scan.lua
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ function AuraScan.OnEvent(frame, eventName, unitId, updateInfo)
for auraIndex = 1, #updateInfo.addedAuras do
---@type aurainfo
local auraInfo = updateInfo.addedAuras[auraIndex]
print(unitId, targetName, auraInfo.name)
--print(unitId, targetName, auraInfo.name)
fAddAura(auraInfo)
end
end
Expand Down
2 changes: 1 addition & 1 deletion frames/window_mythicplus/window_mythic_breakdown.lua
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function mPlus.CreateMainFrame()
PixelUtil.SetPoint(mPlusFrame, "center", UIParent, "center", 0, 0)
PixelUtil.SetSize(mPlusFrame, Details222.BreakdownWindow.width, Details222.BreakdownWindow.height)


end


13 changes: 8 additions & 5 deletions functions/slash.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1964,10 +1964,7 @@ if (WOW_PROJECT_ID == WOW_PROJECT_MAINLINE) then
f:SetScript("OnEvent", function(self, event, ...)
if (f:IsShown()) then
if (event == "GUILD_ROSTER_UPDATE") then
local bUpdateOkay = ...
if (bUpdateOkay) then
self:RefreshData()
end
self:RefreshData()
end
end
end)
Expand All @@ -1986,13 +1983,19 @@ if (WOW_PROJECT_ID == WOW_PROJECT_MAINLINE) then
local guildName = GetGuildInfo("player")
if (guildName) then
f:RegisterEvent("GUILD_ROSTER_UPDATE")

C_Timer.NewTicker(1, function()
f:RefreshData()
end, 30)

C_Timer.After(30, function()
f:UnregisterEvent("GUILD_ROSTER_UPDATE")
end)
C_GuildInfo.GuildRoster()

openRaidLib.RequestKeystoneDataFromGuild()
end
end, 100, 20, "Request from Guild")
end, 100, 22, "Request from Guild")
requestFromGuildButton:SetPoint("bottomleft", statusBar, "topleft", 2, 2)
requestFromGuildButton:SetTemplate(detailsFramework:GetTemplate("button", "OPTIONS_BUTTON_TEMPLATE"))
requestFromGuildButton:SetIcon("UI-RefreshButton", 20, 20, "overlay", {0, 1, 0, 1}, "lawngreen")
Expand Down

0 comments on commit 4eff7b2

Please sign in to comment.