I'm trying to decide how best to determine that the people in the raid are also in the current boss fight and not outside the instance.
You could loop over the raid on ENCOUNTER_START and put everyone who's in the same zone as you into a table to reference throughout the fight, or you could compare their zone (from GetRaidRosterInfo) to yours when they're resurrected.. but I'm not sure if phasing could potentially cause problems with that.
I was thinking something like this..
Lua Code:
for i = 1, GetNumGroupMembers() do
local name, _, _, _, _, class, zone, online, isDead, _, _, role = GetRaidRosterInfo(i)
if zone == OurZone and online then
if not isDead and WhoDead[name] then -- unit no longer dead, presumed rezzed
WhoDead[name] = nil
NumRezzed = NumRezzed + 1
elseif isDead and not WhoDead[name] then -- someone died
WhoDead[name] = true
end
end
end