From b5508f75953c13b65d69b525d7e445ba1e149d51 Mon Sep 17 00:00:00 2001 From: Yunfan Li Date: Wed, 26 Jul 2023 13:29:57 +0800 Subject: [PATCH] fix lfg action --- src/strategy/actions/LfgActions.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/strategy/actions/LfgActions.cpp b/src/strategy/actions/LfgActions.cpp index e476754f..86f9cd47 100644 --- a/src/strategy/actions/LfgActions.cpp +++ b/src/strategy/actions/LfgActions.cpp @@ -250,12 +250,12 @@ bool LfgRoleCheckAction::Execute(Event event) { uint32 currentRoles = sLFGMgr->GetRoles(bot->GetGUID()); uint32 newRoles = GetRoles(); - if (currentRoles == newRoles) - return false; + // if (currentRoles == newRoles) + // return false; sLFGMgr->SetRoles(bot->GetGUID(), newRoles); - sLFGMgr->UpdateRoleCheck(group->GetGUID()); + sLFGMgr->UpdateRoleCheck(group->GetGUID(), bot->GetGUID(), newRoles); LOG_INFO("playerbots", "Bot {} {}:{} <{}>: LFG roles checked", bot->GetGUID().ToString().c_str(), bot->GetTeamId() == TEAM_ALLIANCE ? "A" : "H", bot->getLevel(), bot->GetName().c_str());