change talents spec command

This commit is contained in:
Yunfan Li
2023-07-24 19:53:22 +08:00
parent 36bb6d4786
commit 043023da95

View File

@@ -14,7 +14,7 @@ bool ChangeTalentsAction::Execute(Event event)
std::ostringstream out; std::ostringstream out;
TalentSpec botSpec(bot); TalentSpec botSpec(bot);
if (!param.empty()) if (!param.empty())
{ {
if (param.find("auto") != std::string::npos) if (param.find("auto") != std::string::npos)
@@ -28,6 +28,10 @@ bool ChangeTalentsAction::Execute(Event event)
else if (param.find("list") != std::string::npos) else if (param.find("list") != std::string::npos)
{ {
listPremadePaths(getPremadePaths(""), &out); listPremadePaths(getPremadePaths(""), &out);
} else if (param == "1") {
bot->ActivateSpec(0);
} else if (param == "2") {
bot->ActivateSpec(1);
} }
else else
{ {