Question: can king attack in check?
Answer: The king may capture an enemy piece in a move to get out of check, as long as the piece is not protected. Blocking the check. This only works if the checking piece is a queen, rook, or bishop and there is at least one empty square in the line between the checking piece and the checked king.