AznamirWoW / PallyPower

The official repository of PallyPower for retail version of World of Warcraft Classic/TBC
Other
6 stars 6 forks source link

SoD setting individual buffs #24

Closed ProKlutch closed 4 months ago

ProKlutch commented 4 months ago

Message: Interface/AddOns/PallyPower/PallyPower.lua:1183: bad argument #1 to 'pairs' (table expected, got nil) Time: Wed Feb 28 09:44:35 2024 Count: 1 Stack: Interface/AddOns/PallyPower/PallyPower.lua:1183: bad argument #1 to 'pairs' (table expected, got nil) [string "=[C]"]: in function pairs' [string "@Interface/AddOns/PallyPower/PallyPower.lua"]:1183: in functionCanBuffBlessing' [string "@Interface/AddOns/PallyPower/PallyPower.lua"]:467: in function PallyPowerGrid_NormalBlessingMenu' [string "@Interface/AddOns/PallyPower/PallyPower.lua"]:518: in functionPallyPowerPlayerButton_OnClick'

Locals: (temporary) = nil (temporary) = "table expected, got nil" = defined =[C]:-1

On SoD addition of Horn or Lordaeron to the spells table causes a null reference when iterating through CanBuffBlessing due to the lack of Horn having an index in the spell ranks table when trying to set individual buffs via left clicking the player name in the assignments window.

ProKlutch commented 4 months ago

This is how I was getting around the issue myself. Tested the new version and was able to do individual assignments solo, in party, and in raids. Thanks.