From c1c2a2954c6ddc33c476c0f0fe820689e96760ac Mon Sep 17 00:00:00 2001 From: 4n0n <4n0n@tinkr.site> Date: Thu, 2 Feb 2023 17:56:59 -0600 Subject: [PATCH] Combo points for classic --- src/Unit/Unit.lua | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/Unit/Unit.lua b/src/Unit/Unit.lua index a946e0a..4dc9412 100644 --- a/src/Unit/Unit.lua +++ b/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