mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-21 02:20:00 +01:00
change talents spec command
This commit is contained in:
parent
36bb6d4786
commit
043023da95
@ -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
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user