Originally Posted by d87
Could be actual pet guid changed somewhere along the line since you stored it.
Try doing a fresh UnitGUID("pet") every time or consider using source flags for this check
|
It is checked immediately above, and it's the same GUID as read from the beginning in PLAYER_ENTERING_WORLD. So you can't see any problem with the logic then?