View Single Post
06-01-11, 02:00 PM   #20
Mischback
A Cobalt Mageweaver
 
Mischback's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2009
Posts: 221
Glad I could help you!

In fact, I'm currently working on this problem myself, so here's my override:

lua Code:
  1. core.CPointOverride = function(self, event, unit)
  2.     if ( unit == 'pet' ) then return end
  3.  
  4.     local cp
  5.     if ( UnitHasVehicleUI('player') ) then
  6.         cp = GetComboPoints('vehicle', 'target')
  7.     else
  8.         cp = GetComboPoints('player', 'target')
  9.     end
  10.  
  11.     local cpoints = self.CPoints
  12.     if ( cp > 0 ) then
  13.         cpoints:Show()
  14.         self.Debuffs:SetPoint('BOTTOM', cpoints, 'TOP', 0, 7)
  15.         for i=1, MAX_COMBO_POINTS do
  16.             if( i <= cp ) then
  17.                 cpoints[i]:SetAlpha(1)
  18.             else
  19.                 cpoints[i]:SetAlpha(0.35)
  20.             end
  21.         end
  22.     else
  23.         cpoints:Hide()
  24.         self.Debuffs:SetPoint('BOTTOM', self, 'TOP', 0, 10)
  25.     end
  26. end

Note that I'm moving my Debuffs with this, you should erase these lines!
__________________
  Reply With Quote