File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ cPointDisplay.Types = {
7
7
name = " General" ,
8
8
points = {
9
9
[1 ] = {name = " Combo Points" , id = " cp" , barcount = 5 },
10
+ [2 ] = {name = " Combo Points with Deeper Stratagem" , id = " cp6" , barcount = 6 },
10
11
}
11
12
},
12
13
[" PALADIN" ] = {
@@ -513,14 +514,18 @@ function cPointDisplay:GetPoints(CurClass, CurType)
513
514
-- General
514
515
if CurClass == " GENERAL" then
515
516
-- Combo Points
516
- if CurType == " cp" then
517
+ if ( CurType == " cp" ) or ( CurType == " cp6 " ) then
517
518
if (UnitHasVehicleUI (" player" ) and UnitHasVehiclePlayerFrameUI (" player" )) then
518
519
NewPoints = GetComboPoints (" vehicle" )
519
520
if (NewPoints == 0 ) then
520
521
NewPoints = GetComboPoints (" vehicle" , " vehicle" )
521
522
end
522
523
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
524
529
end
525
530
end
526
531
-- Paladin
You can’t perform that action at this time.
0 commit comments