I think you need to set the pettarget specifically. Something like this

/pettarget=party1target;

/petattack;