Core/Pet: PetAbandon() does nothing for other pets than hunter's
Description
Source for "/run PetAbandon()" cases : "- Demons about to die can be dismissed and nearly instantly resummoned with Fel Domination. This will conserve their buffs, and bring them back with full health and mana. The command to dismiss a demon is /run PetAbandon(), which can be macro'd and assigned to a button."
Relevant code: https://github.com/TrinityCore/TrinityCore/blob/e30e023b4aa142d0a2f959640435ec5f5be3c030/src/server/game/Handlers/PetHandler.cpp#L671
Possible related/fix: https://github.com/cmangos/mangos-tbc/commit/8f9772e413e31804606be33f63f03bfe14d0b3ad
Expected behaviour
Source for "/run PetAbandon()" cases : "- Demons about to die can be dismissed and nearly instantly resummoned with Fel Domination. This will conserve their buffs, and bring them back with full health and mana. The command to dismiss a demon is /run PetAbandon(), which can be macro'd and assigned to a button."
Steps to reproduce the problem
Be warlock /run PetAbandon() nothing happens
Branch
3.3.5
TC rev. hash/commit
e30e023b4aa142d0a2f959640435ec5f5be3c030
Operating system
Windows 11
Custom changes
None
Source: TrinityCore/TrinityCore