From ae490f434db0ea38e984a33aaeba74ebb0875c60 Mon Sep 17 00:00:00 2001 From: Tercio Jose Date: Thu, 20 Jul 2023 16:37:27 -0300 Subject: [PATCH] Added .total_extra for damage actors, when above zero, a secondary statusbar is shown in the player bar --- boot.lua | 6 +++--- classes/class_damage.lua | 2 -- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/boot.lua b/boot.lua index 044631dc3..5809e7c37 100644 --- a/boot.lua +++ b/boot.lua @@ -13,12 +13,12 @@ local addonName, Details222 = ... local version, build, date, tocversion = GetBuildInfo() - Details.build_counter = 11701 - Details.alpha_build_counter = 11701 --if this is higher than the regular counter, use it instead + Details.build_counter = 11718 + Details.alpha_build_counter = 11718 --if this is higher than the regular counter, use it instead Details.dont_open_news = true Details.game_version = version Details.userversion = version .. " " .. Details.build_counter - Details.realversion = 154 --core version, this is used to check API version for scripts and plugins (see alias below) + Details.realversion = 155 --core version, this is used to check API version for scripts and plugins (see alias below) Details.APIVersion = Details.realversion --core version Details.version = Details.userversion .. " (core " .. Details.realversion .. ")" --simple stirng to show to players diff --git a/classes/class_damage.lua b/classes/class_damage.lua index 571c62156..f987474d3 100644 --- a/classes/class_damage.lua +++ b/classes/class_damage.lua @@ -1851,7 +1851,6 @@ function damageClass:RefreshWindow(instancia, combatObject, forcar, exportar, re return Details:EndRefresh(instancia, total, combatObject, showing) --retorna a tabela que precisa ganhar o refresh elseif (keyName == "damage_taken_by_spells") then - local bs_index, total = 0, 0 Details:Destroy(bs_index_table) @@ -1993,7 +1992,6 @@ function damageClass:RefreshWindow(instancia, combatObject, forcar, exportar, re return Details:EndRefresh(instancia, bs_index, combatObject, showing) elseif (keyName == "voidzones") then - local index = 0 local misc_container = combatObject [4] local voidzone_damage_total = 0