From 3c3088aa16652f3135884b85a0d11f22ce987c05 Mon Sep 17 00:00:00 2001 From: Parnic Date: Tue, 24 May 2016 13:32:46 -0500 Subject: [PATCH] Fixed error for non-rogues --- modules/ComboPoints.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/ComboPoints.lua b/modules/ComboPoints.lua index 286915b..14794c1 100644 --- a/modules/ComboPoints.lua +++ b/modules/ComboPoints.lua @@ -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