Skip to content

Commit

Permalink
fix(Core/Pet): Warlock pet handling (azerothcore#19054)
Browse files Browse the repository at this point in the history
* dismiss summoned non-hunter pets by removing them

* store createdbyspellid

* Revert "dismiss summoned non-hunter pets by removing them"

This reverts commit eb539e8.
  • Loading branch information
sogladev authored Jun 13, 2024
1 parent 4b40237 commit f846d79
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/server/game/Entities/Pet/Pet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ bool Pet::LoadPetFromDB(Player* owner, uint32 petEntry, uint32 petnumber, bool c

if (current && owner->IsPetNeedBeTemporaryUnsummoned())
{
owner->SetLastPetSpell(petInfo->CreatedBySpellId);
owner->SetTemporaryUnsummonedPetNumber(petInfo->PetNumber);
return false;
}
Expand Down

0 comments on commit f846d79

Please sign in to comment.