private static WoWPlayer GetBestRiptideTarget(WoWPlayer originalTarget) { if (!originalTarget.HasMyAura("Riptide") && originalTarget.InLineOfSpellSight) { return(originalTarget); } // Target already has RT. So lets find someone else to throw it on. Lowest health first preferably. WoWPlayer ripTarget = Unit.GroupMembers.Where(u => u.DistanceSqr < 40 * 40 && !u.HasMyAura("Riptide") && u.InLineOfSpellSight).OrderBy(u => u.GetPredictedHealthPercent()).FirstOrDefault(); if (ripTarget != null && ripTarget.GetPredictedHealthPercent() > SingularSettings.Instance.IgnoreHealTargetsAboveHealth) { ripTarget = null; } return(ripTarget); }