public static float GetAbilityRadius(this AbilityData ability) { if (ability.Blueprint.Range != AbilityRange.Unlimited) { float meters; if (ability.TargetAnchor == AbilityTargetAnchor.Owner) { if (ability.Blueprint.AoERadius == 0.Feet()) { return(0f); } meters = ability.Blueprint.AoERadius.Meters; } else { meters = ability.GetVisualDistance(); } if (ability.IsPierceOrCone) { meters += ability.Caster.Unit.Corpulence; } return(meters); } return(0f); }