[Talents] Switch command

This commit is contained in:
Yunfan Li
2024-06-03 23:10:58 +08:00
parent 05236fddec
commit 5855d4e8fe

View File

@@ -23,10 +23,10 @@ bool ChangeTalentsAction::Execute(Event event)
if (param.find("help") != std::string::npos) { if (param.find("help") != std::string::npos) {
out << TalentsHelp(); out << TalentsHelp();
} else if (param.find("switch") != std::string::npos) { } else if (param.find("switch") != std::string::npos) {
if (param == "1") { if (param.find("switch 1")) {
bot->ActivateSpec(0); bot->ActivateSpec(0);
out << "Active first talent"; out << "Active first talent";
} else if (param == "2") { } else if (param.find("switch 2")) {
bot->ActivateSpec(1); bot->ActivateSpec(1);
out << "Active second talent"; out << "Active second talent";
} }