View Single Post
04-28-16, 03:02 PM   #3
galvin
A Frostmaul Preserver
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 265
theres code that checks for it.

Code:
function ComboFrame_UpdateMax(self)
	self.maxComboPoints = UnitPowerMax(PlayerFrame.unit, SPELL_POWER_COMBO_POINTS);
	
	-- If we have 6 or 9 max combo points, we use the first combo point and we show 6 circles
	-- in a row. Otherwise we skip the first combo point and show 5 circles. The last 3 combo
	-- point circle (if you have the talent to allow this) are shown only if filled.
	if (self.maxComboPoints == 6 or self.maxComboPoints == 9) then
		self.startComboPointIndex = 1;
		self.extraComboPoints = 7;
	else
		self.startComboPointIndex = 2;
		self.extraComboPoints = 6;
	end
	
	-- First hide all combo points
	for i = 1, #self.ComboPoints do
		self.ComboPoints[i]:Hide();
	end
end
You can look at more of the code just download it. Want to start working on my combo point code. But when blizzard does this complicated stuff, then need to research it, see if my missing something.

The XML goes up to 9. Surprised these forums are not getting busy yet. Addons been enabled.

Last edited by galvin : 04-28-16 at 03:05 PM.