hazard
Well-Known Member
- Joined
- Sep 16, 2010
- Messages
- 1,854
- Reaction score
- 55
Is there a way that I can change this line so when in battlegrounds it loads as:
and when in dungeons, raids, solo it loads this instead:
</wowunit></wowunit></wowplayer></wowplayer>
Code:
WoWUnit u = ObjectManager.GetObjectsOfType'WoWPlayer'<wowplayer><wowplayer>(false, false).FirstOrDefault(unit => Me.IsAlive && unit.IsHostile && unit.IsAlive && unit.Distance2D < 40 && !unit.Mounted && unit.InLineOfSight);
and when in dungeons, raids, solo it loads this instead:
Code:
WoWUnit u = ObjectManager.GetObjectsOfType</wowplayer></wowplayer>'WoWUnit'<wowplayer><wowplayer><wowunit><wowunit>(false, false).FirstOrDefault(unit => Me.IsAlive && unit.IsHostile && unit.IsAlive && unit.Distance2D < 40 && !unit.Mounted && unit.InLineOfSight);