Skip to content

Commit

Permalink
Update to LocalizedClassList on Retail
Browse files Browse the repository at this point in the history
  • Loading branch information
Snakybo committed Jan 16, 2024
1 parent 7da5ef4 commit 7356b5a
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
1 change: 1 addition & 0 deletions .luacheckrc
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ read_globals = {
"LE_EXPANSION_WRATH_OF_THE_LICH_KING",
"LIGHTBLUE_FONT_COLOR",
"LoadAddOn",
"LocalizedClassList",
"MAX_SPELLS",
"MAX_NUM_TALENTS",
"MAX_TALENT_TABS",
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ The format of this changelog is based on [Keep a Changelog](https://keepachangel
* The MINOR component is used whenever a version has backwards-compatible profile changes. This also indicates that the user can not switch back to a previous MINOR version without using a backup.
* The PATCH component is used for versions that do not contain profile format changes. Users can freely switch between PATCH versions without risk of data loss.

## [Unreleased]

### Added

* Add support for Dragonflight 10.2.5

## [1.14.2] - 2023-12-19

### Fixed
Expand Down
10 changes: 8 additions & 2 deletions Clicked/Core/LocaleUtils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -370,8 +370,14 @@ function Addon:GetLocalizedClasses()
local order = {}

--- @type table<ClassFile,string>
local classes = {}
FillLocalizedClassList(classes)
local classes

if Addon:IsGameVersionAtleast("RETAIL") then
classes = LocalizedClassList()
else
classes = {}
FillLocalizedClassList(classes)
end

for classId, className in pairs(classes) do
if classId ~= "Adventurer" then
Expand Down

0 comments on commit 7356b5a

Please sign in to comment.