Function: DismissPet(spawn)
Description: Dismisses the supplied pet NPC through its original owner. Combat, deity and cosmetic pets are removed; a charmed NPC instead loses its pet/owner state and receives a normal brain. Already dismissing pets are ignored. The operation retains the admitted pet and owner through spell-removal callbacks. Cleanup clears only the original relationship revision: a replacement pet, a same-allocation reassignment or callback reparenting is preserved.
Parameters:
spawn(Spawn) - Pet NPC to dismiss, rather than the owning Player.
Returns: None. Invalid/non-pet input or an unavailable owner performs no dismissal.