-
-
Save nzifnab/dfe9ff2680f2882cec3e to your computer and use it in GitHub Desktop.
WA Code for missing AB...
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function() | |
local unit = nil | |
local group_type = "" | |
local group_size = 0 | |
if IsInRaid() then | |
group_type = "raid" | |
group_size = 40 | |
elseif IsInGroup() then | |
group_type = "party" | |
group_size = 5 | |
else | |
group_type = "player" | |
group_size = 1 | |
unit = "player" | |
end | |
MISSING_PLAYERS = {} | |
for i = 1, group_size do -- For each group member | |
if not unit then | |
unit = group_type .. i | |
end | |
-- If this group member exists, is alive, and is in range | |
if UnitExists(unit) and not UnitIsDeadOrGhost(unit) and IsSpellInRange("Arcane Brilliance", unit) then | |
if not UnitBuff(unit, "Arcane Brilliance") and not UnitBuff(unit, "Dalaran Brilliance") then | |
MISSING_PLAYERS[#MISSING_PLAYERS+1] = UnitName(unit) | |
end | |
end | |
end | |
if #MISSING_PLAYERS > 0 then | |
return true | |
else | |
return false | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment