From 3d1920675b568fb2addc8e11681bf9759f1958e5 Mon Sep 17 00:00:00 2001 From: Yunfan Li Date: Sat, 31 Aug 2024 23:45:24 +0800 Subject: [PATCH] Keep bear strategy for bear druid in bg --- conf/playerbots.conf.dist | 4 ++-- src/AiFactory.cpp | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/conf/playerbots.conf.dist b/conf/playerbots.conf.dist index 9954da5e..31fcf6eb 100644 --- a/conf/playerbots.conf.dist +++ b/conf/playerbots.conf.dist @@ -1183,9 +1183,9 @@ AiPlayerbot.RandomClassSpecIndex.9.2 = 2 AiPlayerbot.RandomClassSpecProb.11.0 = 20 AiPlayerbot.RandomClassSpecIndex.11.0 = 0 -AiPlayerbot.RandomClassSpecProb.11.1 = 30 +AiPlayerbot.RandomClassSpecProb.11.1 = 25 AiPlayerbot.RandomClassSpecIndex.11.1 = 1 -AiPlayerbot.RandomClassSpecProb.11.2 = 30 +AiPlayerbot.RandomClassSpecProb.11.2 = 35 AiPlayerbot.RandomClassSpecIndex.11.2 = 2 AiPlayerbot.RandomClassSpecProb.11.3 = 20 AiPlayerbot.RandomClassSpecIndex.11.3 = 3 diff --git a/src/AiFactory.cpp b/src/AiFactory.cpp index 75787511..d107b0dc 100644 --- a/src/AiFactory.cpp +++ b/src/AiFactory.cpp @@ -480,11 +480,11 @@ void AiFactory::AddDefaultCombatStrategies(Player* player, PlayerbotAI* const fa if ((player->getClass() == CLASS_DRUID && tab == 2) || (player->getClass() == CLASS_SHAMAN && tab == 2)) engine->addStrategiesNoInit("caster", "caster aoe", nullptr); - if (player->getClass() == CLASS_DRUID && tab == 1) - engine->addStrategiesNoInit(/*"behind",*/ "dps", nullptr); + // if (player->getClass() == CLASS_DRUID && tab == 1) + // engine->addStrategiesNoInit(/*"behind",*/ "dps", nullptr); - if (player->getClass() == CLASS_ROGUE) - engine->addStrategiesNoInit(/*"behind",*/ "stealth", nullptr); + // if (player->getClass() == CLASS_ROGUE) + // engine->addStrategiesNoInit(/*"behind",*/ "stealth", nullptr); } }