From 4e5a01608c270a708e09d8b1b1c5848a39e02c25 Mon Sep 17 00:00:00 2001 From: Flamanis Date: Tue, 10 Sep 2024 01:49:46 -0500 Subject: [PATCH] Attempt to add Demon to pet titles. --- classes/container_actors.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/classes/container_actors.lua b/classes/container_actors.lua index bedc8d58d..de5288a7e 100644 --- a/classes/container_actors.lua +++ b/classes/container_actors.lua @@ -189,6 +189,9 @@ for i=1, #unitNameTitles do unitNameTitles[i] = unitNameTitles[i]:gsub('%%s', '(.*)') end +--Add Demon to the list, attempt to localize it. There is no UNITNAME_TITLE_DEMON sadly, but I can try to swap out the word "Pet" for "Demon" using the localized names. +unitNameTitles[#unitNameTitles+1] = unitNameTitles[1]:gsub(PET_TYPE_PET, PET_TYPE_DEMON) + ---attempt to the owner of a pet using tooltip scan, if the owner isn't found, return nil ---@param petGUID string ---@param petName string