It does something I don't like though; when you go to war with a faction you massively overpower, the AI still goes and takes your undefended settlements even though they should know they have no possible chance of holding on to them more than a couple of turns. I don't think a human would play like that...