Transliterate pet names on damage tooltip

This commit is contained in:
Tercio Jose
2024-05-09 15:13:31 -03:00
parent 0ee793665e
commit c031558109
+5 -1
View File
@@ -3918,7 +3918,11 @@ function damageClass:ToolTip_DamageDone (instancia, numero, barra, keydown)
local petActor = instancia.showing[class_type]:PegarCombatente (nil, petName)
if (petActor) then
for _spellid, _skill in pairs(petActor:GetActorSpells()) do
ActorSkillsSortTable [#ActorSkillsSortTable+1] = {_spellid, _skill.total, _skill.total/meu_tempo, petName:gsub((" <.*"), "")}
local formattedPetName = petName:gsub((" <.*"), "")
if (instancia.row_info.textL_translit_text) then
formattedPetName = Translit:Transliterate(formattedPetName, "!")
end
ActorSkillsSortTable [#ActorSkillsSortTable+1] = {_spellid, _skill.total, _skill.total/meu_tempo, formattedPetName}
end
end
end