|N N 959|
i have this question also.
here is the situation,
1 i have an allie on on the opposite side of the target weilding a melee weapon and within range of that target.
2 i have a melee weapon in hand. in this case a mace. and on the opposite side of the target from my allie. there for full filling the requirments of flanking.
3 im a rogue with magical trickster. lets me sneak attack with spells that have a strike effect and deals damage.
4 on my turn i cast a ranged strike spell. (yes im open to oppertunity attacks)
the question is am i still flanking and get sneak attack on the spell attack?
Technically, yes, you would get sneak attack.
Here are the conditions for the creature to be considered Flat-footed to you.
Source Core Rulebook pg. 476
When you and an ally are flanking a foe, it has a harder time defending against you. A creature is flat-footed (taking a –2 circumstance penalty to AC) to creatures that are flanking it.
To flank a foe, you and your ally must be on opposites sides or corners of the creature. A line drawn between the center of your space and the center of your ally’s space must pass through opposite sides or opposite corners of the foe’s space. Additionally, both you and the ally have to be able to act, must be wielding melee weapons or able to make an unarmed attack, can’t be under any effects that prevent you from attacking, and must have the enemy within reach. If you are wielding a reach weapon, you use your reach with that weapon for this purpose.
Here are the requirements to get Sneak Attack.
When your enemy can’t properly defend itself, you take advantage to deal extra damage. If you Strike a creature that has the flat-footed condition (page 620) with an agile or finesse melee weapon, an agile or finesse unarmed attack, or a ranged weapon attack, you deal an extra 1d6 precision damage. For a ranged attack with a thrown melee weapon, that weapon must also be agile or finesse
Based on your scenario, you satisfy the requisite conditions for both Flanking (thus making the creature flat-footed to you) and Sneak Attack (using a Strike against a flat-footed creature).