mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-21 10:30:01 +01:00
fix lfg action
This commit is contained in:
parent
a2045d6d76
commit
b5508f7595
@ -250,12 +250,12 @@ bool LfgRoleCheckAction::Execute(Event event)
|
|||||||
{
|
{
|
||||||
uint32 currentRoles = sLFGMgr->GetRoles(bot->GetGUID());
|
uint32 currentRoles = sLFGMgr->GetRoles(bot->GetGUID());
|
||||||
uint32 newRoles = GetRoles();
|
uint32 newRoles = GetRoles();
|
||||||
if (currentRoles == newRoles)
|
// if (currentRoles == newRoles)
|
||||||
return false;
|
// return false;
|
||||||
|
|
||||||
sLFGMgr->SetRoles(bot->GetGUID(), newRoles);
|
sLFGMgr->SetRoles(bot->GetGUID(), newRoles);
|
||||||
|
|
||||||
sLFGMgr->UpdateRoleCheck(group->GetGUID());
|
sLFGMgr->UpdateRoleCheck(group->GetGUID(), bot->GetGUID(), newRoles);
|
||||||
|
|
||||||
LOG_INFO("playerbots", "Bot {} {}:{} <{}>: LFG roles checked",
|
LOG_INFO("playerbots", "Bot {} {}:{} <{}>: LFG roles checked",
|
||||||
bot->GetGUID().ToString().c_str(), bot->GetTeamId() == TEAM_ALLIANCE ? "A" : "H", bot->getLevel(), bot->GetName().c_str());
|
bot->GetGUID().ToString().c_str(), bot->GetTeamId() == TEAM_ALLIANCE ? "A" : "H", bot->getLevel(), bot->GetName().c_str());
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user