tullamods / tullaRange

Colors actionbuttons when out of range
https://tullamods.com/tullaRange
MIT License
18 stars 6 forks source link

11.0.2 LUA spam #37

Closed vezevez closed 3 months ago

vezevez commented 3 months ago

Many errors with the new patch :(

5x tullaRange/actionState.lua:48: attempt to call global 'IsUsableSpell' (a nil value) [string "@tullaRange/actionState.lua"]:48: in function `GetPetActionState' [string "@tullaRange/updater.modern.lua"]:158: in function <tullaRange/updater.modern.lua:157> [string "@tullaRange/updater.modern.lua"]:257: in function <tullaRange/updater.modern.lua:248>

string "=[C]": in function `Update' [string "@Blizzard_ActionBar/Mainline/PetActionBar.lua"]:86: in function <Blizzard_ActionBar/Mainline/PetActionBar.lua:70>

Locals: slot = 4 = "Dash" = 132120 = nil = false = true = true spellID = 61684 checksRange = false inRange = false oor = false (temporary) = nil (temporary) = 61684 (*temporary) = "attempt to call global 'IsUsableSpell' (a nil value)"

RangerTure commented 3 months ago

Same

11x tullaRange/actionState.lua:48: attempt to call global 'IsUsableSpell' (a nil value) [string "@tullaRange/actionState.lua"]:48: in function `GetPetActionState' [string "@tullaRange/updater.modern.lua"]:158: in function <tullaRange/updater.modern.lua:157> [string "@tullaRange/updater.modern.lua"]:257: in function <tullaRange/updater.modern.lua:248>

string "=[C]": in function `Update' [string "@Blizzard_ActionBar/Mainline/PetActionBar.lua"]:74: in function <Blizzard_ActionBar/Mainline/PetActionBar.lua:70>

Locals: slot = 4 = "Bite" = 132127 = nil = false = true = true spellID = 17253 checksRange = false inRange = false oor = false (temporary) = nil (temporary) = 17253 (*temporary) = "attempt to call global 'IsUsableSpell' (a nil value)"

vezevez commented 3 months ago

looks like it's fixed with the newest update :) thank you tuller

stako commented 3 months ago

still causing problems on Cataclysm Classic.

fixed by changing this local _, oom = (IsSpellUsable or C_Spell.IsSpellUsable)(spellID) to this local _, oom = (IsUsableSpell or C_Spell.IsSpellUsable)(spellID)

not sure if the C_Spell.IsSpellUsable portion is correct. I believe that's just for retail which I haven't got installed