I can confirm this. The charmed pets will take your XP unless you break the charm, kill whatever it was that it was killing, then kill said charmed pet.
EDIT: Actually I meant the other way around. You have to kill your charmed pet, then kill whatever it was that it was killing to get full XP from both.
|