That was pretty unprofessional of the Rock and Foley was actually pretty pissed off afterwards. He got over it obviously and it's a nice little nostalgia moment but it's funny how Rock going into business himself by scrambling Mick's brain is totally ignored.
Ignored by whom though? Most logical folks I've ever seen talk about the match pan Foley for having his kids there front and center and they pan Rock for not checking on Mick after wearing his ass out with that chair. Mick was pretty clear how mad he was in his book
Foley spoke on it on Austin's podcast and basically said it was on both of them that that ending went off the rails the way it did.
Mick was happy to do it to establish Rock as dangerous but he said he didn't think of how not having his hands to brace for impact would make it hard for him to "fold" under getting hit with the chair. So it more or less fired him up and set off his fight or flight instincts so he got lost in the character and started reacting as such, Rock then in turn reacted like someone who also was out of control and lost in that very same moment.
It's why I really don't like watching that match, sure wrestling is gonna be uncomforable at times/not fun to watch but yikes the risk didn't match the reward.