WoWInterface SVN PerfectRaid_QuickHealth

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /trunk
    from Rev 2 to Rev 3
    Reverse comparison

Rev 2 → Rev 3

PerfectRaid_QuickHealth.lua
12,10 → 12,10
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
 
31,10 → 31,10
 
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);
46,6 → 46,7
end
setfenv(PerfectRaid.UNIT_HEALTH, oldEnv);
end);
RemapGUIDMap()
end
 
-- Remap guids when party changed ONLY if we're not in a raid.
PerfectRaid_QuickHealth.toc
3,6 → 3,7
## 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