diff --git a/src/strategy/actions/ChatActionContext.h b/src/strategy/actions/ChatActionContext.h index 37a4d7de..b258dc84 100644 --- a/src/strategy/actions/ChatActionContext.h +++ b/src/strategy/actions/ChatActionContext.h @@ -142,6 +142,7 @@ class ChatActionContext : public NamedObjectContext creators["save mana"] = &ChatActionContext::save_mana; creators["max dps chat shortcut"] = &ChatActionContext::max_dps_chat_shortcut; creators["tell attackers"] = &ChatActionContext::tell_attackers; + creators["tell target"] = &ChatActionContext::tell_target; creators["formation"] = &ChatActionContext::formation; creators["stance"] = &ChatActionContext::stance; creators["sendmail"] = &ChatActionContext::sendmail; diff --git a/src/strategy/generic/ChatCommandHandlerStrategy.cpp b/src/strategy/generic/ChatCommandHandlerStrategy.cpp index 3a6c2411..ba23b38c 100644 --- a/src/strategy/generic/ChatCommandHandlerStrategy.cpp +++ b/src/strategy/generic/ChatCommandHandlerStrategy.cpp @@ -56,6 +56,7 @@ void ChatCommandHandlerStrategy::InitTriggers(std::vector& trigger triggers.push_back(new TriggerNode("warning", NextAction::array(0, new NextAction("runaway chat shortcut", relevance), nullptr))); triggers.push_back(new TriggerNode("max dps", NextAction::array(0, new NextAction("max dps chat shortcut", relevance), nullptr))); triggers.push_back(new TriggerNode("attackers", NextAction::array(0, new NextAction("tell attackers", relevance), nullptr))); + triggers.push_back(new TriggerNode("target", NextAction::array(0, new NextAction("tell target", relevance), nullptr))); triggers.push_back(new TriggerNode("ready", NextAction::array(0, new NextAction("ready check", relevance), nullptr))); } diff --git a/src/strategy/triggers/ChatTriggerContext.h b/src/strategy/triggers/ChatTriggerContext.h index daa9af9e..89976efd 100644 --- a/src/strategy/triggers/ChatTriggerContext.h +++ b/src/strategy/triggers/ChatTriggerContext.h @@ -85,6 +85,7 @@ class ChatTriggerContext : public NamedObjectContext creators["save mana"] = &ChatTriggerContext::save_mana; creators["max dps"] = &ChatTriggerContext::max_dps; creators["attackers"] = &ChatTriggerContext::attackers; + creators["target"] = &ChatTriggerContext::target; creators["formation"] = &ChatTriggerContext::formation; creators["stance"] = &ChatTriggerContext::stance; creators["sendmail"] = &ChatTriggerContext::sendmail; @@ -128,6 +129,7 @@ class ChatTriggerContext : public NamedObjectContext static Trigger* formation(PlayerbotAI* botAI) { return new ChatCommandTrigger(botAI, "formation"); } static Trigger* stance(PlayerbotAI* botAI) { return new ChatCommandTrigger(botAI, "stance"); } static Trigger* attackers(PlayerbotAI* botAI) { return new ChatCommandTrigger(botAI, "attackers"); } + static Trigger* target(PlayerbotAI* botAI) { return new ChatCommandTrigger(botAI, "target"); } static Trigger* max_dps(PlayerbotAI* botAI) { return new ChatCommandTrigger(botAI, "max dps"); } static Trigger* save_mana(PlayerbotAI* botAI) { return new ChatCommandTrigger(botAI, "save mana"); } static Trigger* who(PlayerbotAI* botAI) { return new ChatCommandTrigger(botAI, "who"); }