From 043023da951e496dacf10806668598c33f5c88a8 Mon Sep 17 00:00:00 2001 From: Yunfan Li Date: Mon, 24 Jul 2023 19:53:22 +0800 Subject: [PATCH] change talents spec command --- src/strategy/actions/ChangeTalentsAction.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/strategy/actions/ChangeTalentsAction.cpp b/src/strategy/actions/ChangeTalentsAction.cpp index 9c80c15e..fd7d3a55 100644 --- a/src/strategy/actions/ChangeTalentsAction.cpp +++ b/src/strategy/actions/ChangeTalentsAction.cpp @@ -14,7 +14,7 @@ bool ChangeTalentsAction::Execute(Event event) std::ostringstream out; TalentSpec botSpec(bot); - + if (!param.empty()) { if (param.find("auto") != std::string::npos) @@ -28,6 +28,10 @@ bool ChangeTalentsAction::Execute(Event event) else if (param.find("list") != std::string::npos) { listPremadePaths(getPremadePaths(""), &out); + } else if (param == "1") { + bot->ActivateSpec(0); + } else if (param == "2") { + bot->ActivateSpec(1); } else {