- fixed the issue with the damage taken by spell.

This commit is contained in:
Tercioo
2016-02-28 09:23:41 -03:00
parent 3a4e799342
commit 3f90739c5b
2 changed files with 8 additions and 9 deletions
+5 -6
View File
File diff suppressed because one or more lines are too long
+3 -3
View File
@@ -909,9 +909,9 @@
local bars_show_data = instancia.row_info.textR_show_data
local bars_brackets = instancia:GetBarBracket()
local spell_damage = tabela [2]
local spell_damage = tabela [2] -- spell_damage passar por uma ToK function, precisa ser number
if (not bars_show_data [1]) then
spell_damage = ""
spell_damage = tabela [2] --damage taken by spell não tem PS, então é obrigado a passar o dano total
end
if (not bars_show_data [3]) then
porcentagem = ""
@@ -919,7 +919,7 @@
porcentagem = porcentagem .. "%"
end
esta_barra.texto_direita:SetText (SelectedToKFunction (_, spell_damage) .. bars_brackets[1] .. porcentagem .. bars_brackets[2])
esta_barra.texto_direita:SetText ((spell_damage and SelectedToKFunction (_, spell_damage) or "") .. bars_brackets[1] .. porcentagem .. bars_brackets[2])
esta_barra.texto_esquerdo:SetTextColor (1, 1, 1, 1)
esta_barra.texto_direita:SetTextColor (1, 1, 1, 1)