mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
change talents spec command
This commit is contained in:
@@ -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
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user