From 694f400f20691503fbd6155a24a4c76927d261e5 Mon Sep 17 00:00:00 2001 From: Yunfan Li Date: Sun, 8 Sep 2024 15:48:28 +0800 Subject: [PATCH] Remove mana potion -> drink alternative --- conf/playerbots.conf.dist | 2 +- src/PlayerbotAIConfig.cpp | 2 +- src/strategy/Strategy.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/conf/playerbots.conf.dist b/conf/playerbots.conf.dist index aa751a7d..518ae5ea 100644 --- a/conf/playerbots.conf.dist +++ b/conf/playerbots.conf.dist @@ -389,7 +389,7 @@ AiPlayerbot.AutoAvoidAoe = 1 AiPlayerbot.MaxAoeAvoidRadius = 15.0 # A whitelist of aoe spell IDs that should not be avoided -AiPlayerbot.AoeAvoidSpellWhitelist = 50759,57491 +AiPlayerbot.AoeAvoidSpellWhitelist = 50759,57491,13810 # Enable healer bot save mana # Default: 1 (enable) diff --git a/src/PlayerbotAIConfig.cpp b/src/PlayerbotAIConfig.cpp index 4fe41134..0e111958 100644 --- a/src/PlayerbotAIConfig.cpp +++ b/src/PlayerbotAIConfig.cpp @@ -112,7 +112,7 @@ bool PlayerbotAIConfig::Initialize() saveManaThreshold = sConfigMgr->GetOption("AiPlayerbot.SaveManaThreshold", 60); autoAvoidAoe = sConfigMgr->GetOption("AiPlayerbot.AutoAvoidAoe", true); maxAoeAvoidRadius = sConfigMgr->GetOption("AiPlayerbot.MaxAoeAvoidRadius", 15.0f); - LoadSet>(sConfigMgr->GetOption("AiPlayerbot.AoeAvoidSpellWhitelist", "50759,57491"), + LoadSet>(sConfigMgr->GetOption("AiPlayerbot.AoeAvoidSpellWhitelist", "50759,57491,13810"), aoeAvoidSpellWhitelist); tellWhenAvoidAoe = sConfigMgr->GetOption("AiPlayerbot.TellWhenAvoidAoe", false); diff --git a/src/strategy/Strategy.cpp b/src/strategy/Strategy.cpp index e6fe779d..3f1c3010 100644 --- a/src/strategy/Strategy.cpp +++ b/src/strategy/Strategy.cpp @@ -94,7 +94,7 @@ private: { return new ActionNode("mana potion", /*P*/ nullptr, - /*A*/ NextAction::array(0, new NextAction("drink"), nullptr), + /*A*/ nullptr, /*C*/ nullptr); }