Skip to content

Commit eddfebe

Browse files
authored
Merge pull request #11 from ChronosSF/deeper-stratagem-support
Deeper stratagem support
2 parents d185dc4 + 5c86f91 commit eddfebe

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

Core.lua

+7-2
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"] = {
@@ -513,14 +514,18 @@ function cPointDisplay:GetPoints(CurClass, CurType)
513514
-- General
514515
if CurClass == "GENERAL" then
515516
-- Combo Points
516-
if CurType == "cp" then
517+
if (CurType == "cp") or (CurType == "cp6") then
517518
if (UnitHasVehicleUI("player") and UnitHasVehiclePlayerFrameUI("player")) then
518519
NewPoints = GetComboPoints("vehicle")
519520
if (NewPoints == 0) then
520521
NewPoints = GetComboPoints("vehicle", "vehicle")
521522
end
522523
else
523-
NewPoints = UnitPower("player", 4)
524+
local maxcp = UnitPowerMax("player", 4)
525+
if (CurType == "cp" and maxcp == 5) or
526+
(CurType == "cp6" and maxcp == 6) then
527+
NewPoints = UnitPower("player", 4)
528+
end
524529
end
525530
end
526531
-- Paladin

0 commit comments

Comments
 (0)