Skip to content

Commit

Permalink
Fixed an issue with open raid library
Browse files Browse the repository at this point in the history
  • Loading branch information
Tercioo committed Dec 15, 2022
1 parent 55f2159 commit 8d93d67
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
6 changes: 4 additions & 2 deletions Libs/LibOpenRaid/Functions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -148,19 +148,21 @@ function openRaidLib.UpdateUnitIDCache()
openRaidLib.UnitIDCache = {}
if (IsInRaid()) then
for i = 1, GetNumGroupMembers() do
local unitName = UnitName("raid"..i)
local unitName = GetUnitName("raid"..i, true)
if (unitName) then
openRaidLib.UnitIDCache[unitName] = "raid"..i
end
end

elseif (IsInGroup()) then
for i = 1, GetNumGroupMembers() - 1 do
local unitName = UnitName("party"..i)
local unitName = GetUnitName("party"..i, true)
if (unitName) then
openRaidLib.UnitIDCache[unitName] = "party"..i
end
end
end

openRaidLib.UnitIDCache[UnitName("player")] = "player"
end

Expand Down
6 changes: 3 additions & 3 deletions Libs/LibOpenRaid/LibOpenRaid.lua
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ if (WOW_PROJECT_ID ~= WOW_PROJECT_MAINLINE and not isExpansion_Dragonflight()) t
end

local major = "LibOpenRaid-1.0"
local CONST_LIB_VERSION = 86
local CONST_LIB_VERSION = 87

if (not LIB_OPEN_RAID_MAX_VERSION) then
LIB_OPEN_RAID_MAX_VERSION = CONST_LIB_VERSION
Expand Down Expand Up @@ -788,7 +788,7 @@ end
--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 = 1.0 + math.random(1.0, 5.5)
local randomTime = 0.3 + math.random(0, 0.7)
openRaidLib.Schedules.NewUniqueTimer(randomTime, openRaidLib.mainControl.SendFullData, "mainControl", "sendFullData_Schedule")
end

Expand Down Expand Up @@ -1937,7 +1937,7 @@ end
local timeLeft, charges, timeOffset, duration, updateTime, auraDuration = unpack(cooldownInfo)
return timeLeft, charges, timeOffset, duration, updateTime, auraDuration
end

function openRaidLib.CooldownManager.OnPlayerCast(event, spellId, isPlayerPet) --~cast
--player casted a spell, check if the spell is registered as cooldown
--issue: pet spells isn't in this table yet, might mess with pet interrupts
Expand Down
4 changes: 2 additions & 2 deletions boot.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
local addonName, Details222 = ...
local version, build, date, tocversion = GetBuildInfo()

_detalhes.build_counter = 10336
_detalhes.alpha_build_counter = 10336 --if this is higher than the regular counter, use it instead
_detalhes.build_counter = 10337
_detalhes.alpha_build_counter = 10337 --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
Expand Down

0 comments on commit 8d93d67

Please sign in to comment.