diff --git a/conf/playerbots.conf.dist b/conf/playerbots.conf.dist index 1a25d948..1396975b 100644 --- a/conf/playerbots.conf.dist +++ b/conf/playerbots.conf.dist @@ -175,7 +175,7 @@ AiPlayerbot.AutoGearCommand = 1 # default: 3 (rare) AiPlayerbot.AutoGearQualityLimit = 3 -# Equips quality limitation for auto gear command (0 = no limit) +# Equips gear score limitation for auto gear command (0 = no limit) # default: 0 (no limit) AiPlayerbot.AutoGearScoreLimit = 0 @@ -450,9 +450,9 @@ AiPlayerbot.BotCheats = "taxi" AiPlayerbot.RandomBotRandomPassword = 0 # Diff with/without player in server. The server will tune bot activity to reach the desired server tick speed (in ms). -# AiPlayerbot.EnablePrototypePerformanceDiff = 0 -# AiPlayerbot.DiffWithPlayer = 100 -# AiPlayerbot.DiffEmpty = 200 +AiPlayerbot.EnablePrototypePerformanceDiff = 0 +AiPlayerbot.DiffWithPlayer = 100 +AiPlayerbot.DiffEmpty = 200 ################################################################################## # # diff --git a/src/PlayerbotAIConfig.cpp b/src/PlayerbotAIConfig.cpp index 5b58949c..d3ab8a0b 100644 --- a/src/PlayerbotAIConfig.cpp +++ b/src/PlayerbotAIConfig.cpp @@ -277,7 +277,7 @@ bool PlayerbotAIConfig::Initialize() addClassCommand = sConfigMgr->GetOption("AiPlayerbot.AddClassCommand", 1); maintenanceCommand = sConfigMgr->GetOption("AiPlayerbot.MaintenanceCommand", 1); autoGearCommand = sConfigMgr->GetOption("AiPlayerbot.AutoGearCommand", 1); - autoGearQualityLimit = sConfigMgr->GetOption("AiPlayerbot.autoGearQualityLimit", 3); + autoGearQualityLimit = sConfigMgr->GetOption("AiPlayerbot.AutoGearQualityLimit", 3); autoGearScoreLimit = sConfigMgr->GetOption("AiPlayerbot.AutoGearScoreLimit", 0); playerbotsXPrate = sConfigMgr->GetOption("AiPlayerbot.KillXPRate", 1); diff --git a/src/PlayerbotFactory.cpp b/src/PlayerbotFactory.cpp index fe6b45eb..5a084cf8 100644 --- a/src/PlayerbotFactory.cpp +++ b/src/PlayerbotFactory.cpp @@ -583,7 +583,7 @@ void PlayerbotFactory::InitPetTalents() return; } CreatureFamilyEntry const* pet_family = sCreatureFamilyStore.LookupEntry(ci->family); - if (pet_family->petTalentType < 0) { + if (!pet_family || pet_family->petTalentType < 0) { // LOG_INFO("playerbots", "{} init pet talents failed with petTalentType < 0({})", bot->GetName().c_str(), pet_family->petTalentType); return; }