Only allow custom bars to track players in Classic

This commit is contained in:
Parnic
2019-09-03 10:17:03 -05:00
parent 2d42116f8d
commit e4d8bae185

View File

@ -81,6 +81,10 @@ function IceCustomBar.prototype:Disable(core)
end
function IceCustomBar.prototype:GetUnitToTrack()
if IceHUD.WowClassic then
return "player"
end
if self.moduleSettings.myUnit == "other" then
if self.moduleSettings.customUnit ~= nil and self.moduleSettings.customUnit ~= "" then
return self.moduleSettings.customUnit
@ -258,6 +262,7 @@ function IceCustomBar.prototype:GetOptions()
order = 30.3,
}
if not IceHUD.WowClassic then
opts["unitToTrack"] = {
type = 'select',
values = validUnits,
@ -303,6 +308,7 @@ function IceCustomBar.prototype:GetOptions()
usage = "<what custom unit to track when unitToTrack is set to 'other'>",
order = 30.45,
}
end
opts["buffOrDebuff"] = {
type = 'select',