This what I was doing in Roth UI since WoD where they introduced UnitPowerType 4 = Combo_Points.
Could not use the old method and had to use Unit_Power.
https://github.com/zorker/rothui/com...omboPoints.lua
https://github.com/zorker/rothui/com...ec7e1bf8cc5c2b
I tested the vehicle fight outside of the Malygos instance. Had no combo point issues.
Lua Code:
if unit and (unit ~= "player" and unit ~= "vehicle") then return end
if powerType and powerType ~= "COMBO_POINTS" then return end
local bar = self.ComboBar
local cp = 0
if(UnitExists("vehicle") and UnitPower("vehicle",4) >= 1) then
cp = UnitPower("vehicle",4)
else
cp = UnitPower("player",4)
end
if cp < 1 and (UnitHasVehicleUI("player") or class ~= "ROGUE") then
bar:Hide()
return
else
bar:Show()
end
https://github.com/zorker/rothui/blo...oPoints.lua#L9
Maybe some later updated killed it. Have not tried it in some time.