What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

Targetting Same faction in arena/Bg

Saif

Member
Joined
Aug 10, 2010
Messages
192
Reaction score
1
I am trying to write a new pvp cc and I am running into a small problem. Everything is working great when I am playing against an opposite faction member in bgs/arenas. However, when I have to go against someone from the same faction in an arena match/rbg the cc will not do anything. Is there anyone that could give me a little support?

Thanks,
Saif
 
wowplayer enemy= (from unit in ObjectManager.GetObjectsOfType<WoWPlayer>(false, false)
where !unit.null
where !unit.dead
where !unit.isghost
where !unit.IsInMyPartyOrRaid
select unit
).FirstOrDefault();

ofc add more check as needed but the key check is !unit.isinmypartyorraid
PS:what CC are you writing?
 
Back
Top