Originally Posted by zbugrkx
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:
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).