Closed kyano closed 3 months ago
Like GetSpellInfo, the global API GetSpellTexture must also change to C_Spell.GetSpellTexture.
GetSpellInfo
GetSpellTexture
C_Spell.GetSpellTexture
--- TidyPlatesInternal/TidyPlatesStatusbar.lua.orig 2024-08-16 02:14:27.192476400 +0900 +++ TidyPlatesInternal/TidyPlatesStatusbar.lua 2024-08-16 02:14:52.422972500 +0900 @@ -9,7 +9,7 @@ local ThreatPlates = Addon.ThreatPlates local ceil, string_format = ceil, string.format -- WoW APIs -local GetSpellTexture = GetSpellTexture +local GetSpellTexture = C_Spell.GetSpellTexture local GetNamePlateForUnit = C_NamePlate.GetNamePlateForUnit local InCombatLockdown = InCombatLockdown local UnitName, UnitIsUnit, UnitClass = UnitName, UnitIsUnit, UnitClass
--- Widgets/BossModsWidget.lua.orig 2024-08-16 02:15:25.288662000 +0900 +++ Widgets/BossModsWidget.lua 2024-08-16 02:15:38.943542700 +0900 @@ -14,7 +14,7 @@ local Widget = Addon.Widgets:NewWidget(" local floor = math.floor -- WoW APIs -local GetSpellTexture = GetSpellTexture +local GetSpellTexture = C_Spell.GetSpellTexture local GetTime = GetTime local tremove = tremove
I found this by getting a Lua error when I enabled Castbar -> Configuration mode -> Toggle on target to adjust nameplate sizes.
Castbar -> Configuration mode -> Toggle on target
You are right. Hopefully, these were the last API changes missing. At least I checked that there are not any other GetSpell... functions used wrongly. Thanks for reporting this. It is fixed in the newly released version 12.0.7.
Like
GetSpellInfo
, the global APIGetSpellTexture
must also change toC_Spell.GetSpellTexture
.I found this by getting a Lua error when I enabled
Castbar -> Configuration mode -> Toggle on target
to adjust nameplate sizes.from BugSack
``` 410x ...eatPlates/TidyPlatesInternal/TidyPlatesStatusbar.lua:436: attempt to call upvalue 'GetSpellTexture' (a nil value) [string "@TidyPlates_ThreatPlates/TidyPlatesInternal/TidyPlatesStatusbar.lua"]:436: in function <...eatPlates/TidyPlatesInternal/TidyPlatesStatusbar.lua:430> Locals: self = StatusBar { Border = Frame { } Value = 0.217000 Background = Texture { } InterruptBorder = Frame { } IsChanneling = false IsCasting = true MaxValue = 2 InterruptOverlay = Texture { } InterruptShield = Texture { } Spark = Texture { } FlashTime = 0 casttime = FontString { } CastTarget = FontString { } } elapsed = 0.017000 db =You are right. Hopefully, these were the last API changes missing. At least I checked that there are not any other GetSpell... functions used wrongly. Thanks for reporting this. It is fixed in the newly released version 12.0.7.