Help using :SetAttribute()

#0 - Dec. 27, 2007, 10:02 p.m.
Blizzard Post
I'm making a few buttons to ease a few things, and one issue I'm running into is getting one button to cast Unending Breath on my target with left click, and when ALT-clicked to cast it on the player. I've tried a few things from the WoW Wikki, but I cannot seem to figure this bugger out.

So far, what I have working is looking like:

button:SetAttribute("type1, "spell")
button:SetAttribute("spell", "Unending Breath")

But that does not have the right-click to target = player. Any tips?
#7 - Dec. 28, 2007, 2:50 a.m.
Blizzard Post
Q u o t e:
I read this like 6 times, and I'm still confused. =P MissButton2:SetAttribute("type", "spell")
MissButton2:SetAttribute("modifiers", "SELFCAST:self")
MissButton2:SetAttribute("self-unit", "player")
MissButton2:SetAttribute("spell", "Unending Breath")returns an error when left or right clicked:
Interface\FrameXML\SecureTemplates.lua:65: attempt to call global 'ParseModifierString' (a nil value)


Forwarded to Q/A, thanks!