I thought they played you rather a nasty trick.
Я думал (-а), они сыграли с тобой довольно скверную шутку.