From feda1e402e4694ffef752c2971a7bc8729bf5b0a Mon Sep 17 00:00:00 2001 From: James Whitehead II Date: Mon, 26 Dec 2011 10:49:25 +0000 Subject: [PATCH] Fix targeting with the stop casting fix --- Clique.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Clique.lua b/Clique.lua index f9dfea3..9254429 100755 --- a/Clique.lua +++ b/Clique.lua @@ -487,7 +487,7 @@ function addon:GetClickAttributes(global) 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 %s", self.stopbutton.name, entry.spell) + local macrotext = string.format("/click %s\n/cast [@mouseover] %s", self.stopbutton.name, entry.spell) 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) @@ -497,6 +497,12 @@ function addon:GetClickAttributes(global) bits[#bits + 1] = ATTR(indent, prefix, "spell", suffix, entry.spell) rembits[#rembits + 1] = REMATTR(prefix, "type", suffix) rembits[#rembits + 1] = REMATTR(prefix, "spell", suffix) + elseif entry.type == "macro" and self.settings.stopcastingfix then + local macrotext = string.format("/click %s\n%s", self.stopbutton.name, entry.macrotext) + bits[#bits + 1] = ATTR(indent, prefix, "type", suffix, entry.type) + bits[#bits + 1] = ATTR(indent, prefix, "macrotext", suffix, macrotext) + rembits[#rembits + 1] = REMATTR(prefix, "type", suffix) + rembits[#rembits + 1] = REMATTR(prefix, "macrotext", suffix) elseif entry.type == "macro" then bits[#bits + 1] = ATTR(indent, prefix, "type", suffix, entry.type) bits[#bits + 1] = ATTR(indent, prefix, "macrotext", suffix, entry.macrotext) -- 1.7.9.5