/trunk
end |
for unit in pairs(PerfectRaid.frames) do |
local guid = UnitGUID(unit); |
if(not guidMap[guid]) then |
guidMap[guid] = {}; |
if(not GUIDMap[guid]) then |
GUIDMap[guid] = {}; |
end |
table.insert(guildMap[guid], unit) |
table.insert(GUIDMap[guid], unit) |
end |
end |
local handlerTable = {}; |
eventFrame:SetScript("OnEvent", function(self, event, ...) |
handlerTable[event](...); |
handlerTable[event](handlerTable, ...); |
end); |
function handlerTable.PLAYER_LOGIN(self) |
function handlerTable:PLAYER_LOGIN() |
local oldEnv = getfenv(PerfectRaid.UNIT_HEALTH); |
QuickHealth.RegisterCallback(self, "HealthUpdated", function(event, GUID, newHealth) |
setfenv(PerfectRaid.UNIT_HEALTH, proxyEnv); |
end |
setfenv(PerfectRaid.UNIT_HEALTH, oldEnv); |
end); |
RemapGUIDMap() |
end |
-- Remap guids when party changed ONLY if we're not in a raid. |
## Version: wowi:revision |
## Author: Cladhaire |
## Notes: A plugin for LibQuickHealth (cncfanatics) for PerfectRaid) |
## Dependencies: PerfectRaid |
PerfectRaid_QuickHealth.lua |
libs\LibQuickHealth-1.0\LibQuickHealth-1.0.xml |