From 6c36abb026d01f1c29a9e94246e4b6b27e808b1c Mon Sep 17 00:00:00 2001 From: Tercio Jose Date: Mon, 13 Jan 2025 15:11:48 -0300 Subject: [PATCH] Fixed an issue while using real time dps and activity time. --- classes/class_damage.lua | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/classes/class_damage.lua b/classes/class_damage.lua index 8712bb0c7..54c8035f9 100644 --- a/classes/class_damage.lua +++ b/classes/class_damage.lua @@ -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