Most of the information I've seen about TCAS talks about only two aircraft being involved.
It's pretty unlikely, although far from impossible that situations involving three or more aircraft may arise.
In such situations is TCAS expected to detect the situation and offer sensible advice still? Or are all bets off and a series of confusing and conflicting advice the most likely outcome?