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

@@ -561,8 +561,8 @@ void AiFactory::AddDefaultNonCombatStrategies(Player* player, PlayerbotAI* const
if (sPlayerbotAIConfig->randomBotJoinBG)
nonCombatEngine->addStrategy("bg");
if (!master || GET_PLAYERBOT_AI(master))
nonCombatEngine->addStrategy("maintenance");
// if (!master || GET_PLAYERBOT_AI(master))
// nonCombatEngine->addStrategy("maintenance");
nonCombatEngine->ChangeStrategy(sPlayerbotAIConfig->randomBotNonCombatStrategies);
}
@@ -589,8 +589,8 @@ void AiFactory::AddDefaultNonCombatStrategies(Player* player, PlayerbotAI* const
nonCombatEngine->addStrategy("move random");
}
if (masterBotAI)
nonCombatEngine->addStrategy("maintenance");
// if (masterBotAI)
// nonCombatEngine->addStrategy("maintenance");
nonCombatEngine->ChangeStrategy(sPlayerbotAIConfig->randomBotNonCombatStrategies);
}

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();