mirror of
https://github.com/Bluewhale1337/HealBotBlue.git
synced 2026-11-09 11:39:03 +00:00
fix: replace Lua 5.1 length operators with table.getn for Vanilla 1.12 compatibility and bump version to 1.7.7
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user