mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 01:08:35 +00:00
fix(Core/Pet): Warlock pet handling (#19054)
* dismiss summoned non-hunter pets by removing them * store createdbyspellid * Revert "dismiss summoned non-hunter pets by removing them" This reverts commit eb539e841d882a6c90f743792c91304b0d365a5c.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user