feat(Core/Pet): DK Petname generation locale (#14059)

This commit is contained in:
Pedro Antonio
2023-02-11 22:21:43 +01:00
committed by GitHub
parent 580d78731f
commit 2e6c28c4d8
5 changed files with 181 additions and 1 deletions

View File

@@ -8827,7 +8827,7 @@ Pet* Player::SummonPet(uint32 entry, float x, float y, float z, float ang, PetTy
// Generate a new name for the newly summoned ghoul
if (pet->IsPetGhoul())
{
std::string new_name = sObjectMgr->GeneratePetName(entry);
std::string new_name = sObjectMgr->GeneratePetNameLocale(entry, GetSession()->GetSessionDbLocaleIndex());
if (!new_name.empty())
pet->SetName(new_name);
}