Updated my answer above, the code at the bottom should be the one you are searching for (no event filter, just unitTag check for your own tag).
Edit: Updated it again and changed the unitTag == nil within LGRI.UpdateMyRole to a ~= nil check, so hat your call from EM:RegisterForEvent(LGRI.name .. "ILeftGroup", EVENT_GROUP_MEMBER_LEFT, still works.
Last edited by Baertram : 03/19/23 at 03:54 PM.
|