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:
TheWatchingI
2020-05-23 15:38:38 +02:00
committed by GitHub
parent 82b22a3eef
commit c7f4204d1f
2 changed files with 4 additions and 5 deletions

View File

@@ -2205,8 +2205,8 @@ void Pet::HandleAsynchLoadFailed(AsynchPetSummon* info, Player* player, uint8 as
if (info->m_petType == SUMMON_PET)
{
if (pet->GetCreatureTemplate()->type == CREATURE_TYPE_DEMON)
pet->GetCharmInfo()->SetPetNumber(pet_number, true); // Show pet details tab (Shift+P) only for demons
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 & undead
else
pet->GetCharmInfo()->SetPetNumber(pet_number, false);