Support target command

This commit is contained in:
qudzy
2022-05-22 15:45:03 +02:00
parent 0d48cff1e2
commit fb666d1379
3 changed files with 4 additions and 0 deletions

View File

@@ -142,6 +142,7 @@ class ChatActionContext : public NamedObjectContext<Action>
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;

View File

@@ -56,6 +56,7 @@ void ChatCommandHandlerStrategy::InitTriggers(std::vector<TriggerNode*>& 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)));
}

View File

@@ -85,6 +85,7 @@ class ChatTriggerContext : public NamedObjectContext<Trigger>
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<Trigger>
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"); }