- 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:
Parnic
2013-11-16 21:35:55 +00:00
parent 07dec01d4d
commit c7a8783615

View File

@ -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