From af15a691b62cabee7e93820154658676b6894605 Mon Sep 17 00:00:00 2001 From: Yunfan Li Date: Mon, 18 Dec 2023 22:32:48 +0800 Subject: [PATCH] SightDistance, FollowChatShortcutAction, concussive shot --- conf/playerbots.conf.dist | 2 +- src/strategy/actions/ChatShortcutActions.cpp | 4 ++-- src/strategy/hunter/DpsHunterStrategy.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/conf/playerbots.conf.dist b/conf/playerbots.conf.dist index 98aa9eec..f12d4376 100644 --- a/conf/playerbots.conf.dist +++ b/conf/playerbots.conf.dist @@ -251,7 +251,7 @@ AiPlayerbot.LootDelay = 1000 # Distances AiPlayerbot.FarDistance = 20.0 -AiPlayerbot.SightDistance = 75.0 +AiPlayerbot.SightDistance = 100.0 AiPlayerbot.SpellDistance = 28.5 AiPlayerbot.ShootDistance = 5.0 AiPlayerbot.ReactDistance = 150.0 diff --git a/src/strategy/actions/ChatShortcutActions.cpp b/src/strategy/actions/ChatShortcutActions.cpp index b7f2bd13..92e259fd 100644 --- a/src/strategy/actions/ChatShortcutActions.cpp +++ b/src/strategy/actions/ChatShortcutActions.cpp @@ -31,8 +31,8 @@ bool FollowChatShortcutAction::Execute(Event event) return false; botAI->Reset(); - botAI->ChangeStrategy("+follow,-passive", BOT_STATE_NON_COMBAT); - botAI->ChangeStrategy("-follow,-passive", BOT_STATE_COMBAT); + botAI->ChangeStrategy("+follow,-passive,-grind", BOT_STATE_NON_COMBAT); + botAI->ChangeStrategy("-follow,-passive,-grind", BOT_STATE_COMBAT); PositionMap& posMap = context->GetValue("position")->Get(); PositionInfo pos = posMap["return"]; diff --git a/src/strategy/hunter/DpsHunterStrategy.cpp b/src/strategy/hunter/DpsHunterStrategy.cpp index 891190da..47b6c94b 100644 --- a/src/strategy/hunter/DpsHunterStrategy.cpp +++ b/src/strategy/hunter/DpsHunterStrategy.cpp @@ -52,7 +52,7 @@ void DpsHunterStrategy::InitTriggers(std::vector& triggers) triggers.push_back(new TriggerNode("concussive shot on snare target", NextAction::array(0, new NextAction("concussive shot", 20.0f), nullptr))); // triggers.push_back(new TriggerNode("no pet", NextAction::array(0, new NextAction("call pet", 21.0f), NULL))); triggers.push_back(new TriggerNode("hunters pet low health", NextAction::array(0, new NextAction("mend pet", 21.0f), NULL))); - /*triggers.push_back(new TriggerNode("has aggro", NextAction::array(0, new NextAction("concussive shot", 20.0f), nullptr)));*/ + triggers.push_back(new TriggerNode("has aggro", NextAction::array(0, new NextAction("concussive shot", 20.0f), nullptr))); } void DpsAoeHunterStrategy::InitTriggers(std::vector& triggers)