Fixed an error during Battlegrounds

Stacked heals feature wasn't checking if the previous deathlog event was a healing event as well.
This commit is contained in:
Tercio Jose
2023-11-02 13:59:17 -03:00
parent 21f30af11f
commit d11f8a1ccd
5 changed files with 9 additions and 10 deletions
+3 -4
View File
@@ -345,7 +345,7 @@ function Details222.Combat.AddCombat(combatToBeAdded)
---@type table<combat, boolean> store references of combat objects removed
local removedCombats = {}
---@debug check if there's a destroyed segment within the segment container
--check if there's a destroyed segment within the segment container
if (amountSegmentsInUse > 0) then
for i = 1, amountSegmentsInUse do
local thisCombatObject = segmentsTable[i]
@@ -449,7 +449,7 @@ function Details222.Combat.AddCombat(combatToBeAdded)
--update the amount of segments in use in case a segment was removed
amountSegmentsInUse = #segmentsTable
---@debug check if there's a destroyed segment within the segment container
-- check if there's a destroyed segment within the segment container
if (amountSegmentsInUse > 0) then
for i = 1, amountSegmentsInUse do
local thisCombatObject = segmentsTable[i]
@@ -681,7 +681,7 @@ function segmentClass:AddCombat(combatObject)
end
end
---@debug check if there's a destroyed segment within the segment container
--check if there's a destroyed segment within the segment container
local segments = Details:GetCombatSegments()
if (#segments > 0) then
for i = 1, #segments do
@@ -691,7 +691,6 @@ function segmentClass:AddCombat(combatObject)
end
end
end
---@end-debug
Details:InstanceCall(function(instanceObject) instanceObject:RefreshCombat() end)