From b30d737f352dcca98ceac478517c879c4f792ce5 Mon Sep 17 00:00:00 2001 From: James Whitehead II Date: Thu, 6 Sep 2012 09:47:17 +0200 Subject: [PATCH] Fix bindings for spells needing AOE targeting The 'stop casting fix' was being applied to global bindings in addition to hovercast bindings, which was breaking spells like Hurricane and Blizzard. This should resolve those issues. --- Clique.lua | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Clique.lua b/Clique.lua index 25fc798..7624cb2 100755 --- a/Clique.lua +++ b/Clique.lua @@ -500,8 +500,14 @@ function addon:GetClickAttributes(global) bits[#bits + 1] = ATTR(indent, prefix, "type", suffix, entry.type) rembits[#rembits + 1] = REMATTR(prefix, "type", suffix) elseif entry.type == "spell" and self.settings.stopcastingfix then - -- Implementation of the 'stop casting' fix - local macrotext = string.format("/click %s\n/cast [@mouseover] %s", self.stopbutton.name, entry.spell) + -- Implement the 'stop casting'f ix + local macrotext + if entry.sets.global then + -- Do not include @mouseover + macrotext = string.format("/click %s\n/cast %s", self.stopbutton.name, entry.spell) + else + macrotext = string.format("/click %s\n/cast [@mouseover] %s", self.stopbutton.name, entry.spell) + end bits[#bits + 1] = ATTR(indent, prefix, "type", suffix, "macro") bits[#bits + 1] = ATTR(indent, prefix, "macrotext", suffix, macrotext) rembits[#rembits + 1] = REMATTR(prefix, "type", suffix) -- 1.7.9.5