Thread Tools Display Modes
Prev Previous Post   Next Post Next
07-14-09, 03:07 AM   #11
ninor
A Defias Bandit
Join Date: Apr 2008
Posts: 2
I'm trying to do some buff/debuff placement switching on whether or not my target is a player or an NPC. Since NPC's usually have a lot of debuffs and few buffs, and PC's usually have the opposite.

What I've tried so far:

Code:
if unit == "target" then
     if (UnitIsPlayer("target")) then
              self.Buff.blabla
              self.Debuff.blabla
     else
              self.Buff.etc
              self.Debuff.etc
     end
end
But it's not working. Do I need to specify a "nil" response instead of just "else"? Have I misunderstood UnitIsPlayer?
 
 

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » oUF - Layout discussion


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off