fix(Core/Pets): Remove xinef hack that caused hunter pet deletion (#24350)

Co-authored-by: sogladev <sogladev@users.noreply.github.com>
This commit is contained in:
blinkysc
2026-01-07 18:50:08 -06:00
committed by GitHub
parent cd0c736385
commit 01c4b10b6d

View File

@@ -9077,13 +9077,6 @@ void Player::RemovePet(Pet* pet, PetSaveMode mode, bool returnreagent)
if (pet) if (pet)
{ {
// xinef: dont save dead pet as current, save him not in slot
if (!pet->IsAlive() && mode == PET_SAVE_AS_CURRENT && pet->getPetType() == HUNTER_PET)
{
mode = PET_SAVE_NOT_IN_SLOT;
m_temporaryUnsummonedPetNumber = 0;
}
LOG_DEBUG("entities.pet", "RemovePet {}, {}, {}", pet->GetEntry(), mode, returnreagent); LOG_DEBUG("entities.pet", "RemovePet {}, {}, {}", pet->GetEntry(), mode, returnreagent);
if (pet->m_removed) if (pet->m_removed)
return; return;