From 31af0f616d5d5be838d969392555cba5e6e9916c Mon Sep 17 00:00:00 2001 From: Flamanis Date: Tue, 9 Aug 2022 14:54:28 -0500 Subject: [PATCH] Fix Dynamic Overall Damage Fix for dynamic overall damage tooltip erroring if the player is not part of the overall segment. --- classes/class_custom.lua | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/classes/class_custom.lua b/classes/class_custom.lua index 8095db11..42e0edde 100644 --- a/classes/class_custom.lua +++ b/classes/class_custom.lua @@ -2290,7 +2290,7 @@ desc = "Show overall damage done on the fly.", source = false, target = false, - script_version = 7, + script_version = 8, script = [[ --init: local combat, instance_container, instance = ... @@ -2353,12 +2353,13 @@ --overall local player = OverallCombat [1]:GetActor (actor.nome) - playerTotal = playerTotal + player.total - local playerSpells = player:GetSpellList() - for spellID, spellTable in pairs (playerSpells) do - AllSpells [spellID] = spellTable.total + if (player) then + playerTotal = playerTotal + player.total + local playerSpells = player:GetSpellList() + for spellID, spellTable in pairs (playerSpells) do + AllSpells [spellID] = spellTable.total + end end - --current if (Details.in_combat) then local player = CurrentCombat [1]:GetActor (actor.nome)