mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
fix lfg action
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user