mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 22:51:53 -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
|
if IceHUD.IceCore:IsInConfigMode() then
|
||||||
points = 5
|
points = 5
|
||||||
elseif IceHUD.WowVer >= 30000 then
|
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
|
else
|
||||||
points = GetComboPoints("target")
|
points = GetComboPoints("target")
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user