The first time someone leaves their king in check, you point it out and they replay the move. After that warning, a king left in check can be taken, and that ends the game.
Instead of
A move that leaves your own king in check isn't allowed, and no king is ever captured.