- possible fix for malygos fight where the player uses combo points while in a vehicle

This commit is contained in:
Parnic
2008-11-20 01:02:36 +00:00
parent 10aaf683a4
commit f1bdda7027

View File

@ -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