Permission check and readability improvements (#997)

* AiFactory check by spell instead of level

* Ignore group security for guild invitation
This commit is contained in:
Yunfan Li
2025-02-24 03:09:59 +08:00
committed by GitHub
parent 114eeb3b37
commit 95c2ba9105
5 changed files with 9 additions and 13 deletions

View File

@@ -2068,7 +2068,7 @@ bool PlayerbotAI::IsMainTank(Player* player)
Group* group = player->GetGroup();
if (!group)
{
return false;
return IsTank(player);
}
ObjectGuid mainTank = ObjectGuid();
Group::MemberSlotList const& slots = group->GetMemberSlots();