<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -45,7 +45,7 @@ local supernova = [[Interface\AddOns\oUF_Kanne2\media\nokiafc22.ttf]]
 local texture = [[Interface\AddOns\oUF_Kanne2\media\HalV.tga]]
 local apathy = [[Interface\AddOns\oUF_Kanne2\media\Normal.tga]]
 
-local name, rank, buffTexture, count, duration, timeLeft, dtype
+local name, rank, btexture, count, dtype, duration, timeLeft, isPlayer
 
 local dummy = function() end
 
@@ -290,11 +290,7 @@ end
 local PostUpdateAuraIcon = function(self, icons, unit, icon, index, offset, filter, isDebuff)
 	icon.unit = unit
 
-	if isDebuff then
-		name, rank, buffTexture, count, dtype, duration, timeLeft = UnitDebuff(unit, index, filter)
-	else
-		name, rank, buffTexture, count, duration, timeLeft = UnitBuff(unit, index, filter)
-	end
+	name, rank, btexture, count, dtype, duration, timeLeft, isPlayer = UnitAura(unit, index, filter)
 
 	if isDebuff and timeLeft and timeLeft &gt; 0 then
 		icon:SetScript(&quot;OnUpdate&quot;, durationTimer)
@@ -394,6 +390,14 @@ local CreateAuraIcon = function(self, icons, index, isDebuff)
 	return button
 end
 
+local Cast_Start = function(self, event, unit, name, rank, text, id)
+	self.Name:Hide()
+end
+
+local Cast_Stop = function(self, event, unit)
+	self.Name:Show()
+end
+
 local frame = function(settings, self, unit)
 	self.menu = menu
 
@@ -489,6 +493,30 @@ local frame = function(settings, self, unit)
 	name:SetShadowOffset(1, -1)
 	name:SetTextColor(1,1,1,1)
 
+	local cbar = CreateFrame(&quot;StatusBar&quot;, nil, self)
+	cbar:Hide()
+	cbar:SetHeight(30)
+	cbar:SetWidth(width)
+	cbar:SetAlpha(0.8)
+	cbar:SetStatusBarTexture(texture)
+	cbar:SetAllPoints(hp)
+
+	local ctext = cbar:CreateFontString(nil, &quot;OVERLAY&quot;)
+	ctext:SetPoint(&quot;LEFT&quot;, self, &quot;LEFT&quot;, 14, 0)
+	ctext:SetPoint(&quot;TOP&quot;, 0, -5)
+	ctext:SetPoint(&quot;BOTTOM&quot;, 0, 5)
+	ctext:SetPoint(&quot;RIGHT&quot;, hval, &quot;LEFT&quot;)
+	ctext:SetJustifyH(&quot;LEFT&quot;)
+	ctext:SetFont(supernova, 10, &quot;THINOUTLINE&quot;)
+	ctext:SetShadowColor(0,0,0,1)
+	ctext:SetShadowOffset(1, -1)
+	ctext:SetTextColor(1,1,1,1)
+
+	cbar.Text = ctext
+	self.Castbar = cbar
+	self.PostCastStart = Cast_Start
+	self.PostCastStop = Cast_Stop
+
 	self.Name = name
 	self.OverideUpdateName = Name_Update
 </diff>
      <filename>core.lua</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>6f1c54205f3dd23a77ebe4625214402470779bbf</id>
    </parent>
  </parents>
  <author>
    <name>Chris Bannister</name>
    <email>c.bannister@gmail.com</email>
  </author>
  <url>http://github.com/Zariel/ouf_kanne2/commit/688cbd9650ebdc3a9384b2d144237feebac2c673</url>
  <id>688cbd9650ebdc3a9384b2d144237feebac2c673</id>
  <committed-date>2009-02-11T04:14:12-08:00</committed-date>
  <authored-date>2009-02-11T04:14:12-08:00</authored-date>
  <message>Add casting bar and fix auras</message>
  <tree>4157a1c58324206eca1fce3f86ed35c35698ea6b</tree>
  <committer>
    <name>Chris Bannister</name>
    <email>c.bannister@gmail.com</email>
  </committer>
</commit>
