Fixed error for non-rogues

This commit is contained in:
Parnic
2016-05-24 13:32:46 -05:00
parent e54c645b99
commit 3c3088aa16

View File

@ -18,7 +18,12 @@ end
function ComboPoints.prototype:GetMaxComboPoints()
return UnitPowerMax("player", SPELL_POWER_COMBO_POINTS)
local retval = UnitPowerMax("player", SPELL_POWER_COMBO_POINTS)
if retval == 0 then -- accommodate non-rogues who still need combo point displays for some specific encounters/quests
retval = 5
end
return retval
end