Backupiseasy / ThreatPlates

Nameplate addon for World of Warcraft
https://wow.curseforge.com/projects/tidy-plates-threat-plates
37 stars 23 forks source link

Cata: LUA error in ComboPointsWidget when changing spec with a DK #518

Closed maexey closed 6 months ago

maexey commented 6 months ago

Threat plates version: 11.2.8-cata When changing spec on DK:

1x ...idyPlates_ThreatPlates/Widgets/ComboPointsWidget.lua:781: attempt to call field 'GetSpecialization' (a nil value) [string "@TidyPlates_ThreatPlates/Widgets/ComboPointsWidget.lua"]:781: in function `?' [string "@TidyPlates_ThreatPlates/Widgets/WidgetHandler.lua"]:43: in function <...ns/TidyPlates_ThreatPlates/Widgets/WidgetHandler.lua:37>

Locals: self =

{ UNIT_MAXPOWER = defined @TidyPlates_ThreatPlates/Widgets/ComboPointsWidget.lua:789 OnTargetUnitAdded = defined @TidyPlates_ThreatPlates/Widgets/ComboPointsWidget.lua:959 TexCoord =
{ } GetThreatPlateForUnit = defined @TidyPlates_ThreatPlates/Widgets/WidgetHandler.lua:203 UnitPowerMax = 6 UpdateRunesMainline = defined @TidyPlates_ThreatPlates/Widgets/ComboPointsWidget.lua:520 UpdateUnitResource = defined @TidyPlates_ThreatPlates/Widgets/ComboPointsWidget.lua:485 Texture = "Interface\AddOns\TidyPlates_ThreatPlates\Widgets\ComboPointsWidget\ComboPointOrb" UpdateComboPointsRogueWithAnimacharge = defined @TidyPlates_ThreatPlates/Widgets/ComboPointsWidget.lua:318 UPDATE_SHAPESHIFT_FORM = defined @TidyPlates_ThreatPlates/Widgets/ComboPointsWidget.lua:829 Create = defined @TidyPlates_ThreatPlates/Widgets/ComboPointsWidget.lua:937 PLAYER_SOFT_ENEMY_CHANGED = defined @TidyPlates_ThreatPlates/Widgets/ComboPointsWidget.lua:809 DetermineUnitPower = defined @TidyPlates_ThreatPlates/Widgets/ComboPointsWidget.lua:268 UpdateAllFramesAndNameplateColor = defined @TidyPlates_ThreatPlates/Widgets/WidgetHandler.lua:127 Colors =
{ } ShowInShapeshiftForm = true RegistedUnitEvents =
{ } GetWidgetFrameForUnit = defined @TidyPlates_ThreatPlates/Widgets/WidgetHandler.lua:211 TextureCoordinates =
{ } UpdateAllFrames = defined @TidyPlates_ThreatPlates/Widgets/WidgetHandler.lua:116 TargetOnly = true UpdateSettings = defined @TidyPlates_ThreatPlates/Widgets/ComboPointsWidget.lua:1128 EventHandlerFrame = Frame { } WidgetFrame = Frame { } TextureOff = "Interface\AddOns\TidyPlates_ThreatPlates\Widgets\ComboPointsWidget\ComboPointOrbOff" WidgetHandler =
{ } db =
{ } RegisterUnitEvent = defined @TidyPlates_ThreatPlates/Widgets/WidgetHandler.lua:74 PLAYER_TARGET_CHANGED = defined @TidyPlates_ThreatPlates/Widgets/ComboPointsWidget.lua:809 IconWidth = 13.200000 OnDisable = defined @TidyPlates_ThreatPlates/Widgets/ComboPointsWidget.lua:902 PowerType = 5 UpdateLayout = defined @TidyPlates_ThreatPlates/Widgets/ComboPointsWidget.lua:1090 UpdateComboPoints = defined @TidyPlates_ThreatPlates/Widgets/ComboPointsWidget.lua:281 RegisterEvent = defined @TidyPlates_ThreatPlates/Widgets/WidgetHandler.lua:65 UpdateRunes = defined @TidyPlates_ThreatPlates/Widgets/ComboPointsWidget.lua:485 OnTargetUnitRemoved = defined @TidyPlates_ThreatPlates/Widgets/ComboPointsWidget.lua:986 EnabledForStyle = defined @TidyPlates_ThreatPlates/Widgets/ComboPointsWidget.lua:926 IsEnabled = defined @TidyPlates_ThreatPlates/Widgets/ComboPointsWidget.lua:844 OnEnable = defined @TidyPlates_ThreatPlates/Widgets/ComboPointsWidget.lua:868 Name = "ComboPoints" IconHeight = 13.200000 PLAYER_ENTERING_WORLD = defined @TidyPlates_ThreatPlates/Widgets/ComboPointsWidget.lua:821 UnregisterAllEvents = defined @TidyPlates_ThreatPlates/Widgets/WidgetHandler.lua:100 UnregisterEvent = defined @TidyPlates_ThreatPlates/Widgets/WidgetHandler.lua:85 ACTIVE_TALENT_GROUP_CHANGED = defined @TidyPlates_ThreatPlates/Widgets/ComboPointsWidget.lua:778 } (temporary) = nil (temporary) = "attempt to call field 'GetSpecialization' (a nil value)" _G =
{ ContainerFrame5Item7 = ContainerFrame5Item7 { }

Backupiseasy commented 6 months ago

True, that's a wrong change when adding Cata Classic support. I just uploaded a new version 11.2.9 that fixes this bug.

maexey commented 6 months ago

thank you, works like a charm, will close