Skip to content

Commit

Permalink
Lib Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Tercioo committed Jul 13, 2021
1 parent 33b7542 commit f516d1d
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions Libs/LibRaidStatus/LibRaidStatus.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

local major = "LibRaidStatus-1.0"
local CONST_LIB_VERSION = 18
local CONST_LIB_VERSION = 19
LIB_RAID_STATUS_CAN_LOAD = false

--declae the library within the LibStub
Expand Down Expand Up @@ -547,7 +547,9 @@ LIB_RAID_STATUS_CAN_LOAD = false

["PLAYER_REGEN_ENABLED"] = function(...)
--left combat
raidStatusLib.Schedules.NewUniqueTimer(10 + math.random(0, 4), raidStatusLib.gearManager.SendDurability, "gearManager", "sendDurability_Schedule")
--when left encounter, share everything
--small hack, pretend to have just entered in the group, hence send all data
raidStatusLib.internalCallback.TriggerEvent("onEnterGroup")
end,

["UPDATE_INVENTORY_DURABILITY"] = function(...)
Expand All @@ -562,6 +564,10 @@ LIB_RAID_STATUS_CAN_LOAD = false
--player changed an equipment
raidStatusLib.Schedules.NewUniqueTimer(4 + math.random(0, 5), raidStatusLib.gearManager.SendAllGearInfo, "gearManager", "sendAllGearInfo_Schedule")
end,

["ENCOUNTER_END"] = function()

end,
}

eventFrame:RegisterEvent("GROUP_ROSTER_UPDATE")
Expand All @@ -575,8 +581,9 @@ LIB_RAID_STATUS_CAN_LOAD = false
--eventFrame:RegisterEvent("PLAYER_SPECIALIZATION_CHANGED")
if (not isTimewalkWoW()) then
eventFrame:RegisterEvent("PLAYER_TALENT_UPDATE")
eventFrame:RegisterEvent("ENCOUNTER_END")
end

eventFrame:RegisterEvent("PLAYER_DEAD")
eventFrame:RegisterEvent("PLAYER_ALIVE")
eventFrame:RegisterEvent("PLAYER_UNGHOST")
Expand Down

0 comments on commit f516d1d

Please sign in to comment.