Z-Perl Unit Frames

Z-Perl Unit Frames

15M Downloads

WoTLK 3.4.3: attempt to call global 'UnitIsBattlePet' (a nil value)

fleetcommand opened this issue ยท 1 comments

commented

Hi,

Every time I log in, I get the following LUA error:

Interface/AddOns/ZPerl_Target/ZPerl_Target.lua:1544: attempt to call global 'UnitIsBattlePet' (a nil value)

The full output is at the end of this report. I am using version 7.0.8-Wrath published in the Curse client, and every time I log in to the game, I get this error popup. Somebody on the Curse comment section recommended to comment out line 144-145 in ZPerl_Target.lua. That indeed makes the error disappear, but I'm not sure if that's the correct way to do it.

If there is any way I can help trying to track this down, pleaes let me know.

Thank you,

FleetCommand

Message: Interface/AddOns/ZPerl_Target/ZPerl_Target.lua:1544: attempt to call global 'UnitIsBattlePet' (a nil value)
Time: Thu Nov  9 14:33:42 2023
Count: 2
Stack: Interface/AddOns/ZPerl_Target/ZPerl_Target.lua:1544: attempt to call global 'UnitIsBattlePet' (a nil value)
[string "@Interface/AddOns/ZPerl_Target/ZPerl_Target.lua"]:1544: in function `func'
[string "@Interface/AddOns/ZPerl_Target/ZPerl_Target.lua"]:1301: in function <Interface/AddOns/ZPerl_Target/ZPerl_Target.lua:1299>

Locals: self = XPerl_Focus {
 bossFrame = XPerl_FocusbossFrame {
 }
 perlBuffs = 0
 portraitFrame = XPerl_FocusportraitFrame {
 }
 nameFrame = XPerl_FocusnameFrame {
 }
 OnBackdropLoaded = <function> defined @Interface/SharedXML/Backdrop.lua:152
 GetBackdropColor = <function> defined @Interface/SharedXML/Backdrop.lua:390
 partyid = "focus"
 hitIndicator = XPerl_FocushitIndicator {
 }
 combatMask = 131072
 SetBackdropBorderColor = <function> defined @Interface/SharedXML/Backdrop.lua:422
 ApplyBackdrop = <function> defined @Interface/SharedXML/Backdrop.lua:294
 SetBackdrop = <function> defined @Interface/SharedXML/Backdrop.lua:329
 ClearBackdrop = <function> defined @Interface/SharedXML/Backdrop.lua:282
 GetBackdropBorderColor = <function> defined @Interface/SharedXML/Backdrop.lua:409
 GetBackdrop = <function> defined @Interface/SharedXML/Backdrop.lua:347
 eliteFrame = XPerl_FocuseliteFrame {
 }
 SetBorderBlendMode = <function> defined @Interface/SharedXML/Backdrop.lua:266
 highlight = XPerl_Focushighlight {
 }
 cpFrame = XPerl_FocuscpFrame {
 }
 OnBackdropSizeChanged = <function> defined @Interface/SharedXML/Backdrop.lua:182
 HasBackdropInfo = <function> defined @Interface/SharedXML/Backdrop.lua:278
 creatureTypeFrame = XPerl_FocuscreatureTypeFrame {
 }
 0 = <userdata>
 statsFrame = XPerl_FocusstatsFrame {
 }
 typeFramePlayer = XPerl_FocustypeFramePlayer {
 }
 FlashFrames = <table> {
 }
 conf = <table> {
 }
 time = 0
 buffSetup = <table> {
 }
 perlDebuffs = 0
 feedbackFontHeight = 30
 feedbackText = XPerl_FocushitIndicatortext {
 }
 buffFrame = XPerl_FocusbuffFrame {
 }
 debuffFrame = XPerl_FocusdebuffFrame {
 }
 SetupTextureCoordinates = <function> defined @Interface/SharedXML/Backdrop.lua:214
 SetupPieceVisuals = <function> defined @Interface/SharedXML/Backdrop.lua:246
 SetBackdropColor = <function> defined @Interface/SharedXML/Backdrop.lua:399
 GetEdgeSize = <function> defined @Interface/SharedXML/Backdrop.lua:188
 levelFrame = XPerl_FocuslevelFrame {
 }
}
(*temporary) = nil
(*temporary) = "target"
(*temporary) = "attempt to call global 'UnitIsBattlePet' (a nil value)"

commented

Sorry, I scrolled down a lot to see if anyone reported this already, but now I see that the "closed" issues are tracked separately. So I found out it will be solved with the next release. Therefore closing this as a duplicate.