File tree Expand file tree Collapse file tree 3 files changed +10
-10
lines changed
Expand file tree Collapse file tree 3 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ The format of this changelog is based on [Keep a Changelog](https://keepachangel
1313### Fixed
1414
1515* Fix bindings created in the global scope not actually being global
16+ * Fix a Lua error with the stance/form selector on Burning Crusade Anniversary [ #291 ]
1617
1718## [ 1.17.3] - 2026-01-25
1819
@@ -1846,6 +1847,7 @@ The format of this changelog is based on [Keep a Changelog](https://keepachangel
18461847[ 0.4.0 ] : https://github.com/Snakybo/Clicked/releases/tag/0.4.0
18471848[ 0.3.0 ] : https://github.com/Snakybo/Clicked/releases/tag/0.3.0
18481849
1850+ [ #291 ] : https://github.com/Snakybo/Clicked/issues/291
18491851[ #288 ] : https://github.com/Snakybo/Clicked/issues/288
18501852[ #287 ] : https://github.com/Snakybo/Clicked/issues/287
18511853[ #286 ] : https://github.com/Snakybo/Clicked/issues/286
Original file line number Diff line number Diff line change @@ -28,9 +28,8 @@ local config = {
2828 label = " Form / Stance" ,
2929 negatable = true ,
3030 availableValues = function (class , specialization )
31- local specIds = Utils .GetRelevantSpecializationIds (class , specialization )
32-
3331 if Addon .EXPANSION_LEVEL >= Addon .Expansion .MOP then
32+ local specIds = Utils .GetRelevantSpecializationIds (class , specialization )
3433 return Addon :GetLocalizedForms (specIds )
3534 else
3635 return Addon :GetLocalizedForms (class )
Original file line number Diff line number Diff line change 673673 --- Get a localized list of all available classic shapeshift forms for the given class names.
674674 --- If the `classNames` parameter is `nil` it will return results for the player's current class.
675675 ---
676- --- @param classes ? string[]
676+ --- @param classes string[]
677677 --- @return table<integer,string> items
678678 --- @return integer[] order
679679 function Addon :GetLocalizedForms (classes )
683683 --- @type integer[]
684684 local order = {}
685685
686- if classes == nil then
687- classes = {}
686+ if # classes == 0 then
688687 classes [1 ] = select (2 , UnitClass (" player" ))
689688 end
690689
@@ -735,14 +734,14 @@ else
735734 end
736735 -- Find specialization with the highest number of forms out of the selected specializations
737736 else
738- for _ , className in ipairs (classes ) do
739- local forms = Addon :GetShapeshiftForms (className )
737+ for _ , className in ipairs (classes ) do
738+ local forms = Addon :GetShapeshiftForms (className )
740739
741- if # forms > max then
742- max = # forms
743- end
740+ if # forms > max then
741+ max = # forms
744742 end
745743 end
744+ end
746745
747746 -- start at 0 because [form:0] is no form
748747 for i = 0 , max do
You can’t perform that action at this time.
0 commit comments