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