Remove mana potion -> drink alternative

This commit is contained in:
Yunfan Li
2024-09-08 15:48:28 +08:00
parent a6ece8fe33
commit 694f400f20
3 changed files with 3 additions and 3 deletions

View File

@@ -389,7 +389,7 @@ AiPlayerbot.AutoAvoidAoe = 1
AiPlayerbot.MaxAoeAvoidRadius = 15.0 AiPlayerbot.MaxAoeAvoidRadius = 15.0
# A whitelist of aoe spell IDs that should not be avoided # 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 # Enable healer bot save mana
# Default: 1 (enable) # Default: 1 (enable)

View File

@@ -112,7 +112,7 @@ bool PlayerbotAIConfig::Initialize()
saveManaThreshold = sConfigMgr->GetOption<int32>("AiPlayerbot.SaveManaThreshold", 60); saveManaThreshold = sConfigMgr->GetOption<int32>("AiPlayerbot.SaveManaThreshold", 60);
autoAvoidAoe = sConfigMgr->GetOption<bool>("AiPlayerbot.AutoAvoidAoe", true); autoAvoidAoe = sConfigMgr->GetOption<bool>("AiPlayerbot.AutoAvoidAoe", true);
maxAoeAvoidRadius = sConfigMgr->GetOption<float>("AiPlayerbot.MaxAoeAvoidRadius", 15.0f); maxAoeAvoidRadius = sConfigMgr->GetOption<float>("AiPlayerbot.MaxAoeAvoidRadius", 15.0f);
LoadSet<std::set<uint32>>(sConfigMgr->GetOption<std::string>("AiPlayerbot.AoeAvoidSpellWhitelist", "50759,57491"), LoadSet<std::set<uint32>>(sConfigMgr->GetOption<std::string>("AiPlayerbot.AoeAvoidSpellWhitelist", "50759,57491,13810"),
aoeAvoidSpellWhitelist); aoeAvoidSpellWhitelist);
tellWhenAvoidAoe = sConfigMgr->GetOption<bool>("AiPlayerbot.TellWhenAvoidAoe", false); tellWhenAvoidAoe = sConfigMgr->GetOption<bool>("AiPlayerbot.TellWhenAvoidAoe", false);

View File

@@ -94,7 +94,7 @@ private:
{ {
return new ActionNode("mana potion", return new ActionNode("mana potion",
/*P*/ nullptr, /*P*/ nullptr,
/*A*/ NextAction::array(0, new NextAction("drink"), nullptr), /*A*/ nullptr,
/*C*/ nullptr); /*C*/ nullptr);
} }