The piece can move. If the king gets attacked after the move, it is not valid.
The piece can move. If the king gets attacked after the move, it is not valid.