2175x [string "BadRotations/System/API/Power.lua"]:116: C stack overflow
...
[string "BrewBloodKnight.lua"]:189: in function run' [string "BadRotations/System/Loader/cCharacter.lua"]:222: in functionstartRotation'
[string "BadRotations/System/Loader/cBuilder.lua"]:436: in function `update'
Locals:
tbl =
{
frac = defined BadRotations/System/API/Power.lua:34
deficit = defined BadRotations/System/API/Power.lua:30
max = defined BadRotations/System/API/Power.lua:53
regen = defined BadRotations/System/API/Power.lua:65
percent = defined BadRotations/System/API/Power.lua:57
ttm = defined BadRotations/System/API/Power.lua:69
}
key = "amount"
(temporary) = nil
(temporary) = defined BadRotations/System/API/Power.lua:114
(temporary) =
{
frac = defined BadRotations/System/API/Power.lua:34
deficit = defined BadRotations/System/API/Power.lua:30
max = defined BadRotations/System/API/Power.lua:53
regen = defined BadRotations/System/API/Power.lua:65
percent = defined BadRotations/System/API/Power.lua:57
ttm = defined BadRotations/System/API/Power.lua:69
}
(temporary) = "amount"
(*temporary) = "C stack overflow"
steps to reproduce:
local runes = br.player.power.runes.amount()
results:
2175x [string "BadRotations/System/API/Power.lua"]:116: C stack overflow
...
[string "BrewBloodKnight.lua"]:189: in function
run' [string "BadRotations/System/Loader/cCharacter.lua"]:222: in function
startRotation' [string "BadRotations/System/Loader/cBuilder.lua"]:436: in function `update'Locals: tbl =
Current workaround:
local runes = UnitPower("player",Enum.PowerType.Runes) local runicPower = UnitPower("player",Enum.PowerType.RunicPower)
As I mentioned in Discord, the Power API changed, to get amount for power types just use the power type as a function:
local runicPower = br.player.power.runicPower() local runes = br.player.power.runes()