CMaNGOS Playerbots "lfg" command implemented (#1291)

* CMaNGOS Playerbots "lfg" command implemented

* Remove logging, fix warning, add suggestion

- Remove LOG_INFO's console clutter, since 'lfg' command is working correctly now.
- Warning C26813 fixed for: placeholders["%role"] = (role == BOT_ROLE_TANK ? "tank" : (role == BOT_ROLE_HEALER ? "healer" : "dps"));
- Added suggestion to let bots do autogear & maintenance, so players can instantly start their dungeon or raid activities without manually having to configure the playerbots gear. It could save a lot of time. This is up to discussion for playerbots maintainers.
This commit is contained in:
Brian
2025-06-01 09:31:29 +02:00
committed by GitHub
parent 89556dafa1
commit 3c05e47cb2
8 changed files with 302 additions and 68 deletions

View File

@@ -183,6 +183,7 @@ public:
creators["bwl chat shortcut"] = &ChatActionContext::bwl_chat_shortcut;
creators["tell estimated dps"] = &ChatActionContext::tell_estimated_dps;
creators["join"] = &ChatActionContext::join;
creators["lfg"] = &ChatActionContext::lfg;
creators["calc"] = &ChatActionContext::calc;
}
@@ -212,6 +213,7 @@ private:
static Action* spirit_healer(PlayerbotAI* botAI) { return new SpiritHealerAction(botAI); }
static Action* rti(PlayerbotAI* botAI) { return new RtiAction(botAI); }
static Action* invite(PlayerbotAI* botAI) { return new InviteToGroupAction(botAI); }
static Action* lfg(PlayerbotAI* botAI) { return new LfgAction(botAI); }
static Action* spell(PlayerbotAI* botAI) { return new TellSpellAction(botAI); }
static Action* cast_custom_spell(PlayerbotAI* botAI) { return new CastCustomSpellAction(botAI); }
static Action* cast_custom_nc_spell(PlayerbotAI* botAI) { return new CastCustomNcSpellAction(botAI); }