fixed class cast exception that appears when pet is killed by a player with an arrow