Skip to content

Commit

Permalink
Merge pull request #11 from ChronosSF/deeper-stratagem-support
Browse files Browse the repository at this point in the history
Deeper stratagem support
  • Loading branch information
ChronosSF authored Aug 31, 2018
2 parents d185dc4 + 5c86f91 commit eddfebe
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ cPointDisplay.Types = {
name = "General",
points = {
[1] = {name = "Combo Points", id = "cp", barcount = 5},
[2] = {name = "Combo Points with Deeper Stratagem", id = "cp6", barcount = 6},
}
},
["PALADIN"] = {
Expand Down Expand Up @@ -513,14 +514,18 @@ function cPointDisplay:GetPoints(CurClass, CurType)
-- General
if CurClass == "GENERAL" then
-- Combo Points
if CurType == "cp" then
if (CurType == "cp") or (CurType == "cp6") then
if (UnitHasVehicleUI("player") and UnitHasVehiclePlayerFrameUI("player")) then
NewPoints = GetComboPoints("vehicle")
if (NewPoints == 0) then
NewPoints = GetComboPoints("vehicle", "vehicle")
end
else
NewPoints = UnitPower("player", 4)
local maxcp = UnitPowerMax("player", 4)
if (CurType == "cp" and maxcp == 5) or
(CurType == "cp6" and maxcp == 6) then
NewPoints = UnitPower("player", 4)
end
end
end
-- Paladin
Expand Down

0 comments on commit eddfebe

Please sign in to comment.