From c7a8783615a92c8aa568e9ad6588f033a6e26fa9 Mon Sep 17 00:00:00 2001 From: Parnic Date: Sat, 16 Nov 2013 21:35:55 +0000 Subject: [PATCH] - 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. --- modules/CustomCDBar.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/CustomCDBar.lua b/modules/CustomCDBar.lua index 9088562..7dedf03 100644 --- a/modules/CustomCDBar.lua +++ b/modules/CustomCDBar.lua @@ -665,7 +665,8 @@ function IceCustomCDBar.prototype:IsReady() if (IsUsableSpell(checkSpell) == 1) 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 end else