mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-25 22:46:25 +00:00
[Talents] Switch command
This commit is contained in:
@@ -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";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user