View Single Post
07-15-10, 01:33 AM   #55
Mischback
A Cobalt Mageweaver
 
Mischback's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2009
Posts: 221
Originally Posted by Cynyr View Post
The odd bit for me was that I couldn't SetPoint() the runes[i] to runes, but had to do it to self.
Yeah, you can't SetPosition() anything to something, which is not positioned itsself (runes has no SetPoint() in your snippet).

Originally Posted by Cynyr View Post
I'm also getting a space for runeframes in all of my units, not just player when a DK.
Without looking at your code: Of course you should only build that Rune-frame on those units, you need it.
If you're using one function for all units, surround your rune-block with something like

Code:
local _, pclass = UnitClass('player')
if ((unit == 'player') and (pclass == 'DEATHKNIGHT')) then
-- Rune-code here
end

Last edited by Mischback : 07-15-10 at 01:36 AM.
  Reply With Quote