Combo points for classic

main
4n0n 2 years ago
parent acab9d0702
commit c1c2a2954c
  1. 11
      src/Unit/Unit.lua

@ -529,12 +529,21 @@ function Unit:IsMovingAtAll()
end
---@return number
function Unit:GetComboPoints()
function Unit:GetComboPoints(unit)
if Tinkr.classic then
if not unit then
return 0
end
return GetComboPoints(self:GetOMToken(), unit:GetOMToken())
end
return UnitPower(self:GetOMToken(), 4)
end
---@return number
function Unit:GetComboPointsMax()
if Tinkr.classic then
return 5
end
return UnitPowerMax(self:GetOMToken(), 4)
end

Loading…
Cancel
Save