diff --git a/modules/CustomBar.lua b/modules/CustomBar.lua index f2b03d8..dffb950 100644 --- a/modules/CustomBar.lua +++ b/modules/CustomBar.lua @@ -241,6 +241,13 @@ function IceCustomBar.prototype:GetOptions() return self.moduleSettings.buffToTrack end, set = function(info, v) + local orig = v + if tonumber(v) ~= nil then + v = GetSpellInfo(tonumber(v)) + end + if v == nil then + v = orig + end if self.moduleSettings.buffToTrack == self.moduleSettings.upperText then self.moduleSettings.upperText = v end diff --git a/modules/CustomCDBar.lua b/modules/CustomCDBar.lua index e3b6a75..275e150 100644 --- a/modules/CustomCDBar.lua +++ b/modules/CustomCDBar.lua @@ -187,6 +187,13 @@ function IceCustomCDBar.prototype:GetOptions() return self.moduleSettings.cooldownToTrack end, set = function(info, v) + local orig = v + if tonumber(v) ~= nil then + v = GetSpellInfo(tonumber(v)) + end + if v == nil then + v = orig + end if self.moduleSettings.cooldownToTrack == self.moduleSettings.upperText then self.moduleSettings.upperText = v end