hazard
Well-Known Member
- Joined
- Sep 16, 2010
- Messages
- 1,854
- Reaction score
- 55
What I am trying to do is make my CC cast Tranquility only when three or more people are below 30% health.
I am not sure what to add? where !unit.IsMoreThan 3
I am not sure what to add? where !unit.IsMoreThan 3
Code:
private WoWPlayer NeedAoEHeals()
{
return (from unit in ObjectManager.GetObjectsOfType<WoWPlayer>(true, true)
orderby unit.HealthPercent ascending
where !unit.Dead
where !unit.IsGhost
where unit.Distance < 40
where unit.HealthPercent < 30
select unit).FirstOrDefault();
}