Skip to content

Commit 8007c89

Browse files
committed
Fixing typos and updating OpenRaid
1 parent 7ffb0c7 commit 8007c89

File tree

4 files changed

+18
-10
lines changed

4 files changed

+18
-10
lines changed

Libs/LibOpenRaid/LibOpenRaid.lua

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ end
4444

4545
local major = "LibOpenRaid-1.0"
4646

47-
local CONST_LIB_VERSION = 133
47+
local CONST_LIB_VERSION = 134
4848

4949
if (LIB_OPEN_RAID_MAX_VERSION) then
5050
if (CONST_LIB_VERSION <= LIB_OPEN_RAID_MAX_VERSION) then
@@ -2762,12 +2762,8 @@ openRaidLib.commHandler.RegisterComm(CONST_COMM_COOLDOWNREQUEST_PREFIX, openRaid
27622762
end
27632763
end
27642764

2765-
function openRaidLib.KeystoneInfoManager.OnPlayerEnterWorld()
2766-
--keystones are only available on retail
2767-
if (not checkClientVersion("retail")) then
2768-
return
2769-
end
2770-
--hack: on received data send data to party and guild
2765+
local keystoneManagerOnPlayerEnterWorld = function()
2766+
--hack: trigger a received data request to send data to party and guild when logging in
27712767
openRaidLib.KeystoneInfoManager.OnReceiveRequestData()
27722768

27732769
--trigger public callback
@@ -2778,6 +2774,18 @@ openRaidLib.commHandler.RegisterComm(CONST_COMM_COOLDOWNREQUEST_PREFIX, openRaid
27782774
openRaidLib.publicCallback.TriggerCallback("KeystoneUpdate", unitName, keystoneInfo, openRaidLib.KeystoneInfoManager.KeystoneData)
27792775
end
27802776

2777+
function openRaidLib.KeystoneInfoManager.OnPlayerEnterWorld()
2778+
--keystones are only available on retail
2779+
if (not checkClientVersion("retail")) then
2780+
return
2781+
end
2782+
2783+
--attempt to load keystone item link as reports indicate it can be nil
2784+
getMythicPlusMapID()
2785+
2786+
C_Timer.After(2, keystoneManagerOnPlayerEnterWorld)
2787+
end
2788+
27812789
function openRaidLib.KeystoneInfoManager.OnMythicDungeonFinished()
27822790
--keystones are only available on retail
27832791
if (not checkClientVersion("retail")) then

boot.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
local addonName, Details222 = ...
2020
local version, build, date, tvs = GetBuildInfo()
2121

22-
Details.build_counter = 12826
23-
Details.alpha_build_counter = 12826 --if this is higher than the regular counter, use it instead
22+
Details.build_counter = 12827
23+
Details.alpha_build_counter = 12827 --if this is higher than the regular counter, use it instead
2424
Details.dont_open_news = true
2525
Details.game_version = version
2626
Details.userversion = version .. " " .. Details.build_counter

classes/class_damage.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2690,7 +2690,7 @@ end
26902690

26912691
--handle internal details! events
26922692
local eventListener = Details:CreateEventListener()
2693-
eventListener:RegisterEvent("COMBAT_PLAYER_ENTER", function()
2693+
eventListener:RegisterEvent("COMBAT_PLAYER_ENTER", function(eventName, combatObject)
26942694
if (Details.CacheInLineMaxDistance) then
26952695
Details:Destroy(Details.CacheInLineMaxDistance)
26962696

35.9 KB
Loading

0 commit comments

Comments
 (0)