mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 14:50:13 -05:00
- possible fix for malygos fight where the player uses combo points while in a vehicle
This commit is contained in:
@ -292,7 +292,9 @@ function ComboPoints.prototype:UpdateComboPoints()
|
||||
if IceHUD.IceCore:IsInConfigMode() then
|
||||
points = 5
|
||||
elseif IceHUD.WowVer >= 30000 then
|
||||
points = GetComboPoints("player", "target")
|
||||
-- Parnic: apparently some fights have combo points while the player is in a vehicle?
|
||||
local isInVehicle = UnitInVehicle("player")
|
||||
points = GetComboPoints(isInVehicle and "vehicle" or "player", "target")
|
||||
else
|
||||
points = GetComboPoints("target")
|
||||
end
|
||||
|
Reference in New Issue
Block a user