Yeah, I agree with the others: RAW, Confusion only affects their turn, and the effect only persists until the end of that turn. By the same logic, its legendary actions wouldn't be affected either.
I have messed this up before as a DM, to the great detriment of the drama of big fights; not with...