fix(Core/Player): don't dismiss warlock pets on logout (#16766)

Update Player.cpp
This commit is contained in:
Tereneckla 2023-07-15 20:12:28 +00:00 committed by GitHub
parent 68a93bcc36
commit e78ff51336
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9021,20 +9021,6 @@ void Player::RemovePet(Pet* pet, PetSaveMode mode, bool returnreagent)
{
pet->CombatStop();
if (returnreagent)
{
switch (pet->GetEntry())
{
//warlock pets except imp are removed(?) when logging out
case 1860:
case 1863:
case 417:
case 17252:
mode = PET_SAVE_NOT_IN_SLOT;
break;
}
}
// only if current pet in slot
pet->SavePetToDB(mode);