Skip to content

Commit 270c46a

Browse files
committed
adding deeper strategem config
1 parent e9daf5e commit 270c46a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Core.lua

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ cPointDisplay.Types = {
77
name = "General",
88
points = {
99
[1] = {name = "Combo Points", id = "cp", barcount = 5},
10+
[2] = {name = "Combo Points with Deeper Stratagem", id = "cp6", barcount = 6},
1011
}
1112
},
1213
["PALADIN"] = {
@@ -526,7 +527,11 @@ function cPointDisplay:GetPoints(CurClass, CurType)
526527
NewPoints = GetComboPoints("vehicle", "vehicle")
527528
end
528529
else
529-
NewPoints = UnitPower("player", SPELL_POWER_COMBO_POINTS)
530+
local maxcp = UnitPowerMax("player", SPELL_POWER_COMBO_POINTS)
531+
if (CurType == "cp" and maxcp == 5) or
532+
(CurType == "cp6" and maxcp == 6) then
533+
NewPoints = UnitPower("player", SPELL_POWER_COMBO_POINTS)
534+
end
530535
end
531536
end
532537
-- Paladin

0 commit comments

Comments
 (0)