From d4e4290dc5a1fc7b3d7bba99269cd3eccbe21804 Mon Sep 17 00:00:00 2001 From: PhatPhuckDave Date: Wed, 1 Jan 2025 20:56:06 +0100 Subject: [PATCH] Only promote units that aren't already There's a big issue with this but I don't know how to fix it yet... And that is that giving people assistant triggers a group update Which triggers give people assistant And so on... --- Modules/Inviter.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Modules/Inviter.lua b/Modules/Inviter.lua index 990e122..eb119cc 100644 --- a/Modules/Inviter.lua +++ b/Modules/Inviter.lua @@ -15,7 +15,9 @@ function shared.Inviter.Init() if Heimdall_Data.config.inviter.agentsAssist then shared.dumpTable(Heimdall_Data.config.agents) for name, _ in pairs(Heimdall_Data.config.agents) do - PromoteToAssistant(name, true) + if not UnitIsRaidOfficer(name) then + PromoteToAssistant(name, true) + end end end end