#I need help making a WA that triggers if the Healer of a party or raid is in my guild.
3 messages · Page 1 of 1 (latest)
I know the event is PARTY_MEMBERS_CHANGED
but I am unsure how to program the function I know the API I Need is guildName, guildRankName, guildRankIndex = GetGuildInfo(unit)
GROUP_ROSTER_UPDATE would be the event
function()
local myGuild = GetGuildInfo("player")
for unit in WA_IterateGroupMembers() do
if (not UnitIsUnit("player", unit))
and UnitGroupRolesAssigned(unit) == "HEALER"
and GetGuildInfo(unit) == myGuild then
return true
end
end
end