azerothcore / mod-eluna

Eluna Lua Engine © for WoW Emulators
https://elunaluaengine.github.io/
GNU General Public License v3.0
100 stars 130 forks source link

feat: add Group:SetMemberFlag() #102

Closed r-o-b-o-t-o closed 1 year ago

r-o-b-o-t-o commented 1 year ago

Adds Group:SetMemberFlag(target, apply, flag):

Sets or removes a flag for a [Group] member

enum GroupMemberFlags
{
    MEMBER_FLAG_ASSISTANT   = 0x01,
    MEMBER_FLAG_MAINTANK    = 0x02,
    MEMBER_FLAG_MAINASSIST  = 0x04,
};

Arguments: ObjectGuid target : GUID of the target bool apply : add the flag if true, remove the flag otherwise [GroupMemberFlags] flag : the flag to set or unset