mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
initpet level strict
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user