Fix pet agro on attack

Pets where not attacking when being missed i moved the pet aggro code ot its own function and moved it outside of the damage check.