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...
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user