diff --git a/HealBotBlue.toc b/HealBotBlue.toc index 16457b5..6e3c938 100644 --- a/HealBotBlue.toc +++ b/HealBotBlue.toc @@ -1,6 +1,6 @@ ## Interface: 11200 ## Title: HealBotBlue -## Version: 1.7.6 +## Version: 1.7.7 ## Author: Bluewhale ## Notes: Raidframe replacement for healing, decursing, resource tracking and buffing with optional support for SuperWow, ClassicAPI, UnitXP_SP3 and Nampower. ## SavedVariablesPerCharacter: HealBot_Config diff --git a/HealBot_View_Layout.lua b/HealBot_View_Layout.lua index 29e0bc1..2a015f7 100644 --- a/HealBot_View_Layout.lua +++ b/HealBot_View_Layout.lua @@ -667,8 +667,8 @@ function HealBot_Action_PartyChanged() local unit = "Test" .. j HealBot_Action_SetHealButton(i, unit) if not HealBot_Model.units[unit] then - local rClass = testClasses[math.random(1, #testClasses)] - local rName = testNames[math.random(1, #testNames)] .. j + local rClass = testClasses[math.random(1, table.getn(testClasses))] + local rName = testNames[math.random(1, table.getn(testNames))] .. j local mHealth = math.random(4000, 8000) local cHealth = math.random(1, mHealth) local pt = 0 @@ -684,7 +684,7 @@ function HealBot_Action_PartyChanged() "Interface\\Icons\\Spell_Holy_Excorcism" -- Fear Ward } -- Shuffle icons - for k = #testIcons, 2, -1 do + for k = table.getn(testIcons), 2, -1 do local j = math.random(k) testIcons[k], testIcons[j] = testIcons[j], testIcons[k] end diff --git a/README.md b/README.md index 1beaca0..97f6010 100644 --- a/README.md +++ b/README.md @@ -50,6 +50,9 @@ Default installation path: `C:\Program Files\World of Warcraft\Interface\AddOns\ ### Change Log +**v1.7.7** +* **Bug Fix - Lua 5.0 Compatibility (Test Bars):** Replaced Lua 5.1 `#` length operators with `table.getn` in test bar generator, resolving `unexpected symbol near '#'` in `HealBot_View_Layout.lua` and resulting `attempt to call global 'HealBot_Action_ResetSkin' (a nil value)` startup crash on Vanilla 1.12. + **v1.7.6** * **Feature - All-Class Support & Raid Frame Replacement:** Removed legacy restriction that disabled HealBot event listeners and UI frames for classes without native healing spells. HealBot now initializes and functions as a full party/raid frame replacement for all classes (Warrior, Mage, Rogue, Hunter, Warlock). * **Targeting & Binding Defaults:** Added default `Left` click `"Target"` binding for non-healer classes, recognized `"target"` in spell resolution, and prevented non-healer buttons from disabling on full-health allies.