Quantcast WoWInterface - View Single Post - damage meter issue related to Pet OwnerName and OwnerID
View Single Post
07-15-13, 02:28 PM   #6
A Pyroguard Emberseer
semlar's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2007
Posts: 1,040
Originally Posted by zbugrkx View Post
arg4, if i'm correct relates to the sourceGUID
sourceGUID is already defined, arg4 is referring to the fourth argument after "targetRaidFlag" in the parameters that the CLEU event contains. What arg4 happens to be depends on the subEvent.

The error isn't being caused by an incorrect value for flag, it's being caused by this little line inside of _RelevantPet..
Lua Code:
  1. or bit.band(guid,0x00F0000000000000) == 0x0040000000000000

edit: It's expecting guid to be a number, not a string. I don't know if this was changed at some point, but it's certainly not a number today.

Try changing it to or tonumber(strsub(guid or '00000', 5, 5) or 0, 16) % 8 == 4 which is basically pulling the fifth character out of the guid (which identifies the unit type) and checks if it's 4 (which identifies it as a pet).

Last edited by semlar : 07-15-13 at 02:40 PM.
  Reply With Quote