smaitch / Grail

World of Warcraft addon to provide a database of quest information.
31 stars 19 forks source link

bad argument #1 to 'GetPowerLevel' #292

Open Ookami313 opened 2 years ago

Ookami313 commented 2 years ago

Zoning into the Mount Hyjal zone produces the following error.

1x Grail\Grail-117.lua:4217: bad argument #1 to 'GetPowerLevel' (Usage: local powerLevel = C_AzeriteItem.GetPowerLevel(azeriteItemLocation)) [string "=[C]"]: in function GetPowerLevel' [string "@Grail\Grail-117.lua"]:4217: in functionAzeriteLevelMeetsOrExceeds' [string "@Grail\Grail-117.lua"]:6810: in function f' [string "@Grail\Grail-117.lua"]:4016: in function_AllEvaluateTrueS' [string "@Grail\Grail-117.lua"]:4116: in function <Grail\Grail.lua:4097>

[string "@Grail\Grail-117.lua"]:8501: in function MeetsPrerequisites' [string "@Grail\Grail-117.lua"]:11561: in functionStatusCode' [string "@Grail\Grail-117.lua"]:4304: in function CanAcceptQuest' [string "@Grail\Grail-117.lua"]:6733: in functionf' [string "@Grail\Grail-117.lua"]:4016: in function `_AllEvaluateTrueS' ...

[string "@Grail\Grail-117.lua"]:8501: in function MeetsPrerequisites' [string "@Grail\Grail-117.lua"]:11561: in functionStatusCode' [string "@Grail\Grail-117.lua"]:4606: in function ClassificationOfQuestCode' [string "@Wholly\Wholly-085.lua"]:1522: in function_ClassifyQuestsInMap' [string "@Wholly\Wholly-085.lua"]:1972: in function _ForcePanelMapArea' [string "@Wholly\Wholly-085.lua"]:4522: in functionUpdateQuestCaches' [string "@Wholly\Wholly-085.lua"]:1037: in function ?' [string "@Wholly\Wholly-085.lua"]:2615: in function_OnEvent' [string "@Wholly\Wholly-085.lua"]:4538: in function <Wholly\Wholly.lua:4538>

Locals: (*temporary) =

{ GetBagAndSlot = defined @FrameXML\ObjectAPI\ItemLocation.lua:42 IsBagAndSlot = defined @FrameXML\ObjectAPI\ItemLocation.lua:60 SetEquipmentSlot = defined @FrameXML\ObjectAPI\ItemLocation.lua:46 HasAnyLocation = defined @FrameXML\ObjectAPI\ItemLocation.lua:64 Clear = defined @FrameXML\ObjectAPI\ItemLocation.lua:29 IsEquipmentSlot = defined @FrameXML\ObjectAPI\ItemLocation.lua:56 IsEqualToBagAndSlot = defined @FrameXML\ObjectAPI\ItemLocation.lua:72 SetBagAndSlot = defined @FrameXML\ObjectAPI\ItemLocation.lua:35 IsEqualTo = defined @FrameXML\ObjectAPI\ItemLocation.lua:88 GetEquipmentSlot = defined @FrameXML\ObjectAPI\ItemLocation.lua:52 IsEqualToEquipmentSlot = defined @FrameXML\ObjectAPI\ItemLocation.lua:80 slotIndex = 13 bagID = 5 IsValid = defined @FrameXML\ObjectAPI\ItemLocation.lua:68 }