mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
- Fixed an issue causing cooldown bars set to "when ready" to not display if the player had no target but the spell was castable on the player and ready to be cast.
This commit is contained in:
@ -665,7 +665,8 @@ function IceCustomCDBar.prototype:IsReady()
|
|||||||
|
|
||||||
if (IsUsableSpell(checkSpell) == 1) then
|
if (IsUsableSpell(checkSpell) == 1) 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) then
|
if (UnitExists("target") and (not SpellHasRange(checkSpell) or IsSpellInRange(checkSpell, "target") == 1))
|
||||||
|
or (not UnitExists("target") and IsSpellInRange(checkSpell, "player")) then
|
||||||
is_ready = 1
|
is_ready = 1
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user