<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -192,7 +192,7 @@ local Health_Update = function(self, event, unit, bar, current, max)
 	local val = bar.value
 
 	local form = format[unit]
-	local per = floor((current/max)*100)
+	local per = floor(current * 100 / max)
 
 	if per == 100 or per == 0 then
 		val:Hide()
@@ -217,11 +217,10 @@ local Power_Update = function(self, event, unit, bar, current, max)
 
 	val:SetText(current)
 
-	if unit ~= &quot;pet&quot; then
-		local col = colors.mp[UnitPowerType(unit)] or {1,1,1}
+	if unit ~= &quot;pet&quot; and UnitClass(&quot;player&quot;) ~= &quot;hunter&quot; then
+		local col = colors.mp[UnitPowerType(unit)] or {1, 1, 1}
 		self.Power:SetStatusBarColor(unpack(col))
 		self.Power.bg:SetVertexColor(unpack(col))
-
 	end
 
 	if powerBreak[unit] then
@@ -249,8 +248,12 @@ local Name_Update = function(self, event, unit)
 	self.Health.bg:SetVertexColor(unpack(color))
 
 	local level = UnitLevel(unit)
-
 	local name = UnitName(unit)
+
+	self._level = level
+	self._name = name
+	self._color = color
+
 	if powerBreak[unit] then
 		self.Name:SetText(string.sub(name, 1, 5))
 		if UnitName(unit) == playerName and unit ~= &quot;pet&quot; then
@@ -268,11 +271,13 @@ local Happiness_Update = function(self, event, unit)
 
 	local happiness = GetPetHappiness()
 	local col
+
 	if happiness then
 		col = colors.happy[happiness]
 	else
 		col = colors.mp[UnitPowerType(unit)]
 	end
+
 	self.Power:SetStatusBarColor(unpack(col))
 end
 
@@ -291,10 +296,6 @@ local PostUpdateAuraIcon = function(self, icons, unit, icon, index, offset, filt
 
 	name, rank, btexture, count, dtype, duration, timeLeft, isPlayer = UnitAura(unit, index, filter)
 
-	if not isPlayer then
-		icon:SetAlpha(0.6)
-	end
-
 	if isDebuff and timeLeft and timeLeft &gt; 0 then
 		icon:SetScript(&quot;OnUpdate&quot;, durationTimer)
 		icon.duration:Show()
@@ -393,6 +394,18 @@ local CreateAuraIcon = function(self, icons, index, isDebuff)
 	return button
 end
 
+local Combo_Update = function(self, event, unit)
+	if unit ~= &quot;player&quot; and self.unit ~= &quot;target&quot; then return end
+
+	local c = GetComboPoints(unit, &quot;target&quot;)
+
+	if c == 0 then
+		c = self._level
+	end
+
+	self.Name:SetFormattedText(format.all.name, toHex(unpack(self._color)), c, self._name)
+end
+
 local frame = function(settings, self, unit)
 	self.menu = menu
 
@@ -498,8 +511,11 @@ local frame = function(settings, self, unit)
 
 	self.RaidIcon = ricon
 
-	if unit == &quot;target&quot; or self:GetParent():GetName() == &quot;oUF_Party&quot; then
+	if unit == &quot;target&quot; or not unit then
 		if unit == &quot;target&quot; then
+			self.UNIT_COMBO_POINTS = Combo_Update
+			self:RegisterEvent(&quot;UNIT_COMBO_POINTS&quot;)
+
 			local b = CreateFrame(&quot;Frame&quot;, nil, self)
 			b:SetHeight(50)
 			b:SetWidth(width)
@@ -526,6 +542,39 @@ local frame = function(settings, self, unit)
 		self.PostUpdateAuraIcon = PostUpdateAuraIcon
 	end
 
+	--[[
+	if unit == &quot;pet&quot; or unit == &quot;targettarget&quot; then
+		local b = CreateFrame(&quot;Frame&quot;, nil, self)
+		b:SetHeight(25)
+		b:SetWidth(294 * 0.45)
+		b:SetPoint(&quot;TOP&quot;, self, &quot;BOTTOM&quot;, 0, - 3)
+		b.size = 22
+		b[&quot;growth-x&quot;] = unit == &quot;pet&quot; and &quot;LEFT&quot; or &quot;RIGHT&quot;
+		b.num = 5
+		self.Buffs = b
+
+		local d = CreateFrame(&quot;Frame&quot;, nil, self)
+		d:SetHeight(25)
+		d:SetWidth(294 * 0.45)
+		d:SetPoint(&quot;TOP&quot;)
+		d.size = 25
+		d[&quot;growth-x&quot;] = unit == &quot;pet&quot; and &quot;LEFT&quot; or &quot;RIGHT&quot;
+		d.num = 5
+		self.Debuffs = d
+
+		if unit == &quot;targettarget&quot; then
+			b.initialAnchor = &quot;TOPLEFT&quot;
+			d.initialAnchor = &quot;TOPLEFT&quot;
+			b:SetPoint(&quot;LEFT&quot;, self, &quot;LEFT&quot;, 3, 0)
+			d:SetPoint(&quot;LEFT&quot;, self, &quot;RIGHT&quot;, 3, 0)
+		else
+			b.initialAnchor = &quot;TOPRIGHT&quot;
+			d.initialAnchor = &quot;TOPRIGHT&quot;
+			b:SetPoint(&quot;RIGHT&quot;, self, &quot;RIGHT&quot;, 0, 0)
+			d:SetPoint(&quot;RIGHT&quot;, self, &quot;LEFT&quot;, 0, 0)
+		end
+	end
+	]]
 	if unit == &quot;targettarget&quot; or unit == &quot;pet&quot; or unit == &quot;focus&quot; then
 	--	pval:Hide()
 	--	hval:Hide()
@@ -535,8 +584,8 @@ local frame = function(settings, self, unit)
 	end
 
 	if unit == &quot;pet&quot; then
-		self.Happiness = false
 		self.UNIT_HAPPINESS = Happiness_Update
+		self:RegisterEvent(&quot;UNIT_HAPPINESS&quot;)
 	end
 
 	if self:GetParent():GetName() == &quot;oUF_Party&quot; then</diff>
      <filename>core.lua</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>a33104fba6756761f4e600637ee5a38798695404</id>
    </parent>
  </parents>
  <author>
    <name>Zariel</name>
    <email>c.bannister@gmail.com</email>
  </author>
  <url>http://github.com/Zariel/ouf_kanne2/commit/dde5129259431f9c81596c6955b4f1d79d3cf559</url>
  <id>dde5129259431f9c81596c6955b4f1d79d3cf559</id>
  <committed-date>2009-07-02T09:03:31-07:00</committed-date>
  <authored-date>2009-07-02T09:03:31-07:00</authored-date>
  <message>Add combo points and fix happiness</message>
  <tree>8116388a7114fd593ae10faa0d1fb712edd59ad5</tree>
  <committer>
    <name>Zariel</name>
    <email>c.bannister@gmail.com</email>
  </committer>
</commit>
