lfg related

This commit is contained in:
Yunfan Li
2023-07-26 13:58:20 +08:00
parent b5508f7595
commit 234b7db8b5
2 changed files with 11 additions and 11 deletions

View File

@@ -36,16 +36,16 @@ PlayerbotSecurityLevel PlayerbotSecurity::LevelFor(Player* from, DenyReason* rea
return PLAYERBOT_SECURITY_DENY_ALL; return PLAYERBOT_SECURITY_DENY_ALL;
} }
if (sLFGMgr->GetState(bot->GetGUID()) != lfg::LFG_STATE_NONE) // if (sLFGMgr->GetState(bot->GetGUID()) != lfg::LFG_STATE_NONE)
{ // {
if (!bot->GetGuildId() || bot->GetGuildId() != from->GetGuildId()) // if (!bot->GetGuildId() || bot->GetGuildId() != from->GetGuildId())
{ // {
if (reason) // if (reason)
*reason = PLAYERBOT_DENY_LFG; // *reason = PLAYERBOT_DENY_LFG;
return PLAYERBOT_SECURITY_TALK; // return PLAYERBOT_SECURITY_TALK;
} // }
} // }
Group* group = from->GetGroup(); Group* group = from->GetGroup();
if (group) if (group)

View File

@@ -250,8 +250,8 @@ 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);