initpet level strict

This commit is contained in:
Yunfan Li
2023-08-06 00:02:46 +08:00
parent 48bf9d083a
commit 7d26647b4b
2 changed files with 5 additions and 5 deletions

View File

@@ -500,7 +500,7 @@ void PlayerbotFactory::InitPet()
Pet* pet = bot->GetPet();
if (!pet)
{
if (bot->getClass() != CLASS_HUNTER)
if (bot->getClass() != CLASS_HUNTER || bot->GetLevel() < 10)
return;
Map* map = bot->GetMap();