mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-16 02:10:28 +00:00
Add /w botname "glyphs" and "glyph equip" commands
This commit is contained in:
@@ -11,9 +11,18 @@
|
||||
#include "PlayerbotAIConfig.h"
|
||||
#include "PlayerbotFactory.h"
|
||||
#include "Playerbots.h"
|
||||
#include "AiObjectContext.h"
|
||||
#include "Log.h"
|
||||
|
||||
bool ChangeTalentsAction::Execute(Event event)
|
||||
{
|
||||
auto* flag = botAI->GetAiObjectContext()->GetValue<bool>("custom_glyphs"); // Added for custom Glyphs
|
||||
|
||||
if (flag->Get()) // Added for custom Glyphs
|
||||
{
|
||||
flag->Set(false);
|
||||
LOG_INFO("playerbots", "Custom Glyph Flag set to OFF");
|
||||
}
|
||||
std::string param = event.getParam();
|
||||
|
||||
std::ostringstream out;
|
||||
|
||||
Reference in New Issue
Block a user