Skip to content

Commit

Permalink
Fixed an issue while using real time dps and activity time.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tercioo committed Jan 13, 2025
1 parent de98d90 commit 6c36abb
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions classes/class_damage.lua
Original file line number Diff line number Diff line change
Expand Up @@ -548,9 +548,12 @@ end
total = total + actorObject.last_dps

if (bOrderDpsByRealTime) then
local realTimeDPS = Details222.CurrentDPS.Cache[actorObject.serial] or 0
actorObject.last_dps_realtime = realTimeDPS
totalRealTime = totalRealTime + realTimeDPS
local realTimeDPS = Details222.CurrentDPS.Cache[actorObject.serial]
if (realTimeDPS) then
realTimeDPS = realTimeDPS.totalDamage / timeSample
actorObject.last_dps_realtime = realTimeDPS
totalRealTime = totalRealTime + realTimeDPS
end
end
end
end
Expand Down

0 comments on commit 6c36abb

Please sign in to comment.