self:SetHealthBarColor(aloftData, self.db.profile.colors.hostilePlayer) |
-- ChatFrame7:AddMessage("AloftHealthBar:ColourHostile(): " .. class hostile " .. tostring(aloftData.name) .. "/" .. tostring(aloftData.class)) |
end |
elseif Aloft:IsTotem(aloftData) and Aloft.GetTotemExceptionColor then |
local color = Aloft:GetTotemExceptionColor(aloftData) or self.db.profile.colors.hostileNPC |
elseif Aloft:IsTotem(aloftData) then |
local color = (Aloft.GetTotemExceptionColor and Aloft:GetTotemExceptionColor(aloftData)) or self.db.profile.colors.hostileNPC |
-- ChatFrame7:AddMessage("AloftHealthBar:ColourHostile(): " .. tostring(aloftData.name) .. "/" ..("|cff%02x%02x%02xcolor|r"):format(floor(255*color[1]), floor(255*color[2]), floor(255*color[3]))) |
self:SetHealthBarColor(aloftData, color) |
elseif aloftData.isPet or aloftData.petOwnersName then |