Originally Posted by Cynyr
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
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