mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-07 21:01:37 +00:00
fix(Core/Pet): Risen Ghoul random name & pet detail (#2945)
Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>
This commit is contained in:
@@ -2205,8 +2205,8 @@ void Pet::HandleAsynchLoadFailed(AsynchPetSummon* info, Player* player, uint8 as
|
|||||||
|
|
||||||
if (info->m_petType == SUMMON_PET)
|
if (info->m_petType == SUMMON_PET)
|
||||||
{
|
{
|
||||||
if (pet->GetCreatureTemplate()->type == CREATURE_TYPE_DEMON)
|
if (pet->GetCreatureTemplate()->type == CREATURE_TYPE_DEMON || pet->GetCreatureTemplate()->type == CREATURE_TYPE_UNDEAD)
|
||||||
pet->GetCharmInfo()->SetPetNumber(pet_number, true); // Show pet details tab (Shift+P) only for demons
|
pet->GetCharmInfo()->SetPetNumber(pet_number, true); // Show pet details tab (Shift+P) only for demons & undead
|
||||||
else
|
else
|
||||||
pet->GetCharmInfo()->SetPetNumber(pet_number, false);
|
pet->GetCharmInfo()->SetPetNumber(pet_number, false);
|
||||||
|
|
||||||
|
|||||||
@@ -160,11 +160,10 @@ uint8 WorldSession::HandleLoadPetFromDBFirstCallback(PreparedQueryResult result,
|
|||||||
return PET_LOAD_OK;
|
return PET_LOAD_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pet->getPetType() == HUNTER_PET || pet->GetCreatureTemplate()->type == CREATURE_TYPE_DEMON)
|
if (pet->getPetType() == HUNTER_PET || pet->GetCreatureTemplate()->type == CREATURE_TYPE_DEMON || pet->GetCreatureTemplate()->type == CREATURE_TYPE_UNDEAD)
|
||||||
pet->GetCharmInfo()->SetPetNumber(pet_number, pet->IsPermanentPetFor(owner)); // Show pet details tab (Shift+P) only for hunter pets or demons
|
pet->GetCharmInfo()->SetPetNumber(pet_number, pet->IsPermanentPetFor(owner)); // Show pet details tab (Shift+P) only for hunter pets, demons or undead
|
||||||
else
|
else
|
||||||
pet->GetCharmInfo()->SetPetNumber(pet_number, false);
|
pet->GetCharmInfo()->SetPetNumber(pet_number, false);
|
||||||
|
|
||||||
pet->SetDisplayId(fields[3].GetUInt32());
|
pet->SetDisplayId(fields[3].GetUInt32());
|
||||||
pet->SetNativeDisplayId(fields[3].GetUInt32());
|
pet->SetNativeDisplayId(fields[3].GetUInt32());
|
||||||
uint32 petlevel = fields[4].GetUInt16();
|
uint32 petlevel = fields[4].GetUInt16();
|
||||||
|
|||||||
Reference in New Issue
Block a user