Skip to content

Instantly share code, notes, and snippets.

@nzifnab
Forked from Choonster/BrandedStatus_1.lua
Last active August 29, 2015 14:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nzifnab/dfe9ff2680f2882cec3e to your computer and use it in GitHub Desktop.
Save nzifnab/dfe9ff2680f2882cec3e to your computer and use it in GitHub Desktop.
WA Code for missing AB...
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