- Fixed CustomCDBar not displaying correctly in 6.0 when in "When ready" mode.

This commit is contained in:
Parnic
2014-10-12 15:46:10 -05:00
parent 1343bb24b4
commit 692121eca2

View File

@ -663,7 +663,7 @@ function IceCustomCDBar.prototype:IsReady()
local is_ready = nil local is_ready = nil
local checkSpell = self:GetSpellNameOrId(self.moduleSettings.cooldownToTrack) local checkSpell = self:GetSpellNameOrId(self.moduleSettings.cooldownToTrack)
if (IsUsableSpell(checkSpell) == 1) then if (IsUsableSpell(checkSpell)) then
if (not self.moduleSettings.bIgnoreRange and SpellHasRange(checkSpell)) or (self.moduleSettings.bOnlyShowWithTarget) then if (not self.moduleSettings.bIgnoreRange and SpellHasRange(checkSpell)) or (self.moduleSettings.bOnlyShowWithTarget) then
if (UnitExists("target") and (not SpellHasRange(checkSpell) or IsSpellInRange(checkSpell, "target") == 1)) if (UnitExists("target") and (not SpellHasRange(checkSpell) or IsSpellInRange(checkSpell, "target") == 1))
or (not UnitExists("target") and not self.moduleSettings.bOnlyShowWithTarget and IsSpellInRange(checkSpell, "player")) then or (not UnitExists("target") and not self.moduleSettings.bOnlyShowWithTarget and IsSpellInRange(checkSpell, "player")) then