SightDistance, FollowChatShortcutAction, concussive shot

This commit is contained in:
Yunfan Li
2023-12-18 22:32:48 +08:00
parent 3c2bc1c959
commit af15a691b6
3 changed files with 4 additions and 4 deletions

View File

@@ -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

View File

@@ -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<PositionMap&>("position")->Get();
PositionInfo pos = posMap["return"];

View File

@@ -52,7 +52,7 @@ void DpsHunterStrategy::InitTriggers(std::vector<TriggerNode*>& 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<TriggerNode*>& triggers)