From 419999fb097ed9c700515e934483a5ad29eb4c3c Mon Sep 17 00:00:00 2001 From: Tercio Jose Date: Thu, 9 Jun 2022 09:59:35 -0300 Subject: [PATCH] Check if the left text has a valid text string before sending it to Truncate --- boot.lua | 4 ++-- classes/class_damage.lua | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/boot.lua b/boot.lua index 1195d10bf..8d2fc5901 100644 --- a/boot.lua +++ b/boot.lua @@ -6,8 +6,8 @@ local version, build, date, tocversion = GetBuildInfo() - _detalhes.build_counter = 9823 - _detalhes.alpha_build_counter = 9823 --if this is higher than the regular counter, use it instead + _detalhes.build_counter = 9824 + _detalhes.alpha_build_counter = 9824 --if this is higher than the regular counter, use it instead _detalhes.bcc_counter = 39 _detalhes.dont_open_news = true _detalhes.game_version = version diff --git a/classes/class_damage.lua b/classes/class_damage.lua index 8e187bdaa..ff896fca3 100644 --- a/classes/class_damage.lua +++ b/classes/class_damage.lua @@ -2481,7 +2481,8 @@ end local thisLine = self:GetLine(lineId) --check if there's something showing in this line - if (thisLine.minha_tabela) then + --check if the line is shown and if the text exists for sanitization + if (thisLine.minha_tabela and thisLine:IsShown() and thisLine.lineText1:GetText()) then local playerNameFontString = thisLine.lineText1 local text2 = thisLine.lineText2 local text3 = thisLine.lineText3