Quantcast

Fix bindings for spells needing AOE targeting

James Whitehead II [09-06-12 - 07:47]
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.
Filename
Clique.lua
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)