Fix passive pets not using spells when commanded to attack

Closes #8941
Merge pull request #8953 from MrSmite/PetAI_PassiveCastFix

Fix passive pets not using spells when commanded to attack