Fixed lib Translit on healing done
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
|
||||
local major = "LibRaidStatus-1.0"
|
||||
local CONST_LIB_VERSION = 19
|
||||
local CONST_LIB_VERSION = 20
|
||||
LIB_RAID_STATUS_CAN_LOAD = false
|
||||
|
||||
--declae the library within the LibStub
|
||||
@@ -21,6 +21,7 @@ LIB_RAID_STATUS_CAN_LOAD = false
|
||||
local CONST_DIAGNOSTIC_COMM = false
|
||||
|
||||
local CONST_COMM_PREFIX = "LRS"
|
||||
local CONST_COMM_FULLINFO_PREFIX = "F"
|
||||
local CONST_COMM_COOLDOWNUPDATE_PREFIX = "U"
|
||||
local CONST_COMM_COOLDOWNFULLLIST_PREFIX = "C"
|
||||
local CONST_COMM_GEARINFO_FULL_PREFIX = "G"
|
||||
@@ -246,6 +247,7 @@ LIB_RAID_STATUS_CAN_LOAD = false
|
||||
|
||||
raidStatusLib.commHandler.commCallback = {
|
||||
--when transmiting
|
||||
[CONST_COMM_FULLINFO_PREFIX] = {}, --update all
|
||||
[CONST_COMM_COOLDOWNFULLLIST_PREFIX] = {}, --all cooldowns of a player
|
||||
[CONST_COMM_COOLDOWNUPDATE_PREFIX] = {}, --an update of a single cooldown
|
||||
[CONST_COMM_GEARINFO_FULL_PREFIX] = {}, --an update of gear information
|
||||
@@ -681,6 +683,41 @@ LIB_RAID_STATUS_CAN_LOAD = false
|
||||
raidStatusLib.publicCallback.TriggerCallback("OnPlayerRess", sourceName)
|
||||
end)
|
||||
|
||||
|
||||
--------------------------------------------------------------------------------------------------------------------------------
|
||||
--> ~all, request data from all players
|
||||
|
||||
--send a request to all player to send their data
|
||||
function raidStatusLib.RequestAllPlayersInfo()
|
||||
if (not IsInGroup()) then
|
||||
return
|
||||
end
|
||||
|
||||
raidStatusLib.requestAllInfoCooldown = raidStatusLib.requestAllInfoCooldown or 0
|
||||
|
||||
if (raidStatusLib.requestAllInfoCooldown > GetTime()) then
|
||||
return
|
||||
end
|
||||
|
||||
raidStatusLib.commHandler.SendCommData(CONST_COMM_FULLINFO_PREFIX)
|
||||
diagnosticComm("RequestAllInfo| " .. CONST_COMM_FULLINFO_PREFIX) --debug
|
||||
|
||||
raidStatusLib.requestAllInfoCooldown = GetTime() + 5
|
||||
return true
|
||||
end
|
||||
|
||||
raidStatusLib.commHandler.RegisterComm(CONST_COMM_FULLINFO_PREFIX, function(data, sourceName)
|
||||
raidStatusLib.sendRequestedAllInfoCooldown = raidStatusLib.sendRequestedAllInfoCooldown or 0
|
||||
|
||||
--some player in the group requested all information from all players
|
||||
if (raidStatusLib.sendRequestedAllInfoCooldown > GetTime()) then
|
||||
return
|
||||
end
|
||||
|
||||
raidStatusLib.Schedules.NewUniqueTimer(random() + math.random(0, 3), raidStatusLib.mainControl.SendFullData, "mainControl", "sendFullData_Schedule")
|
||||
raidStatusLib.sendRequestedAllInfoCooldown = GetTime() + 5
|
||||
end)
|
||||
|
||||
--------------------------------------------------------------------------------------------------------------------------------
|
||||
--> ~cooldowns
|
||||
raidStatusLib.cooldownManager = {
|
||||
|
||||
Reference in New Issue
Block a user