Spellwarp Sniper

The spellwarp sniper contorts spells, changing area effects into rays that deliver precise, devastating attacks.
==== Requirements ====
Skills: Spellcraft 5 ranks
Feats: Point Blank Shot
Spellcasting: Ability to cast 3rd-level spells.
Special: Sneak attack or sudden strike +1d6.
==== Hit die ====
d6
==== Skill points ====
4 + Int
==== Class Features ====
Spellcasting: At each level, you gain new spells per day and an increase in caster level (and spells known, if applicable) as if you had also gained a level in a spellcasting class to which you belonged before adding the prestige class level. You do not, however, gain any other benefit a character of that class would have gained. If you had more than one spellcasting class before becoming a spellwarp sniper, you must decide to which class to add each level for the purpose of determining spells per day, caster level, and spells known.
Spellwarp (Ex): You can alter the form of certain area spells into rays as you cast them. As a free action, you can warp a 1st-level area spell with instantaneous duration and a range greater than touch. The spell's level, components, range, and damage (if any) remain unchanged. However, the spell's area entry is replaced by an effect entry of "ray." The spell acts in all ways as a ray, and is considered a ray for the purpose of effects that modify or depend on rays (such as the other abilities of this prestige class). You must succeed on a ranged touch attack to affect an opponent with the spell. Even if the original spell allowed a Reflex save to reduce or negate its effect, the ray does not. However, if the original spell allowed a Fortitude or Will save to reduce or negate the spell's effect, the save still applies.
You must decide to warp the spell as you cast it. You do not need to prepare it as a warped spell. You can apply metamagic feats as normal to the spell, as long as they can affect ray spells.
Each time you advance a level in this class, the maximum level of spell that you can affect increases by one. For example, a 3rd-level spellwarp sniper can warp spells of up to 3rd level.
Sudden Raystrike (Ex): If you can catch an opponent when he is unable to defend himself effectively from your ray attack, you can strike a vital spot for extra damage. Whenever the target of one of your ray spells is denied a Dexterity bonus to AC (whether the target actually has a Dexterity bonus of not), you deal an extra 1d6 points of damage with your ray spell. (If your ray spell doesn't deal hit point damage, this extra damage doesn't apply.) At 4th level, the extra damage increases to 2d6. If you get a sneak attack or sudden strike bonus from another source (such as rogue or ninja levels), the bonuses on damage stack whenever both abilities would apply to the same target. This damage applies only to targets within 30 feet. Creatures with concealment, creatures without discernible anatomies, and creatures immune to extra damage from critical hits are all immune to your sudden raystrikes.
Precise Shot: At 3rd level, you gain Precise Shot as a bonus feat. If you already have Precise Shot, you can select any other feat that has Point Blank Shot as a prerequisite, as long as you meet the prerequisite for the chosen feat.
Ray Mastery (Ex): At 5th level, you attain unequaled control over your ray spells. This control manifests in three ways:
* You can apply the extra damage from the sudden raystrike ability (as well as any additional sneak attack or sudden strike damage from other sources) to ray attacks against a target within 60 feet, instead of 30 feet.
* You can deliver a coup de grace with a ray spell that deals hit point damage. You must be adjacent to your target to deliver the coup de grace.
* Once per day, you can empower a single ray spell, as though with the Empower Spell feat, without any adjustment to the spell's level or casting time. This effect applies equally to spells that are already rays and those you warp into rays.
=== Advancement ===
Level	BAB	Fort	Ref	Will	Special 	Spellcasting
1st 	+0 	+0 	+0 	+2 	Spellwarp 	+1 level of existing spellcasting class
2nd 	+1 	+0 	+0 	+3 	Sudden raystrike +1d6	+1 level of existing spellcasting class
3rd 	+2 	+1 	+1 	+3 	Precise Shot 	+1 level of existing spellcasting class
4th 	+3 	+1 	+1 	+4 	Sudden raystrike +2d6	+1 level of existing spellcasting class
5th 	+3 	+1 	+1 	+4 	Ray mastery 	+1 level of existing spellcasting class
=== Class skills ===
Skill name 	Key ability	Trained only	Armor check penalty
Concentration 	CON 	 	
Craft 	INT 	 	
Hide 	DEX 	 	
Intimidate 	CHA 	 	
Knowledge (arcana)	INT 	 	
Move Silently 	DEX 	 	
Profession 	WIS 	 	
Spellcraft 	INT 	 	
Spot 	WIS