mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
- Fixed CustomCDBar not displaying correctly in 6.0 when in "When ready" mode.
This commit is contained in:
@ -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
|
||||||
|
Reference in New Issue
Block a user