Testing Coach Deaths

This commit is contained in:
Tercio Jose
2020-12-17 18:30:56 -03:00
parent da6972d1c1
commit 3842c0a9f6
5 changed files with 53 additions and 19 deletions
+14 -1
View File
@@ -444,7 +444,20 @@
if (UnitIsGroupLeader("player")) then
if (Details.Coach.Server.IsEnabled()) then
--update the current combat with new information
Details.packFunctions.DeployPackedCombatData(data)
--this is disabled due to lack of testing
--Details.packFunctions.DeployPackedCombatData(data)
end
end
elseif (msgType == "CDD") then --Coach Death (a player in the raid sent to raid leader his death log)
if (UnitIsGroupLeader("player")) then
if (Details.Coach.Server.IsEnabled()) then
local currentCombat = Details:GetCurrentCombat()
tinsert(currentCombat.last_events_tables, data)
--tag the misc container as need refresh
currentCombat[DETAILS_ATTRIBUTE_MISC].need_refresh = true
end
end
end