mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-18 03:05:43 +00:00
[Initialization] Glyphs remove and dual spec
This commit is contained in:
@@ -23,10 +23,15 @@ bool ChangeTalentsAction::Execute(Event event)
|
||||
if (param.find("help") != std::string::npos) {
|
||||
out << TalentsHelp();
|
||||
} else if (param.find("switch") != std::string::npos) {
|
||||
if (param.find("switch 1")) {
|
||||
if (param.find("switch 1") != std::string::npos) {
|
||||
bot->ActivateSpec(0);
|
||||
out << "Active first talent";
|
||||
} else if (param.find("switch 2")) {
|
||||
} else if (param.find("switch 2") != std::string::npos) {
|
||||
if (bot->GetSpecsCount() == 1 && bot->GetLevel() >= sWorld->getIntConfig(CONFIG_MIN_DUALSPEC_LEVEL))
|
||||
{
|
||||
bot->CastSpell(bot, 63680, true, nullptr, nullptr, bot->GetGUID());
|
||||
bot->CastSpell(bot, 63624, true, nullptr, nullptr, bot->GetGUID());
|
||||
}
|
||||
bot->ActivateSpec(1);
|
||||
out << "Active second talent";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user