Skip to content

Commit

Permalink
Merge pull request #827 from Flamanis/Add-Demon-To-Pet-Titles
Browse files Browse the repository at this point in the history
Attempt to add Demon to pet titles.
  • Loading branch information
Tercioo authored Sep 13, 2024
2 parents 3b26d0d + 4e5a016 commit cb90565
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions classes/container_actors.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cb90565

Please sign in to comment.