Actualy the pet's casting pets while they had a master was an AI bug >=)
The above hunk of code was someones idea of funny niffty or GEFN(good enough for now), pets should get auto assigned thier masters spell list i'll stuff in a quest command or something to assign thier summoned pet a custom spell list
[EDIT]
Yes that should read "pets should not get auto assigned", i type faster than i think, or was that think faster than i type
