From 3732869153c6a38db26be43eeff7e7eca68b4954 Mon Sep 17 00:00:00 2001 From: Parnic Date: Sun, 17 Nov 2013 05:12:55 +0000 Subject: [PATCH] - r953 broke the "Only show with a target selected" option for self-castable spells set to "when ready" on a cooldown module. Obviously I have too many options in this mod. --- modules/CustomCDBar.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/CustomCDBar.lua b/modules/CustomCDBar.lua index 7dedf03..4d344d2 100644 --- a/modules/CustomCDBar.lua +++ b/modules/CustomCDBar.lua @@ -666,7 +666,7 @@ 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)) - or (not UnitExists("target") and IsSpellInRange(checkSpell, "player")) then + or (not UnitExists("target") and not self.moduleSettings.bOnlyShowWithTarget and IsSpellInRange(checkSpell, "player")) then is_ready = 1 end else