Yes, agreeing with the "te". "that you were [/to have been] beaten"
Ita est, cum "te" pronomine concurrens.
I'm writing in Latin hoping for correction, and not because I'm confident in how I express myself. Latinè scribo ut ab omnibus corrigar, non quod confidenter me exprimam.