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

This commit is contained in:
Parnic
2013-11-17 05:12:55 +00:00
parent c7a8783615
commit 3732869153

View File

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