Test for pawn attacking the king.
Removing attack targets...
Promotional capture also works fine... However I don't like the duplication of detecting the attacked squares.
Reusing the method of detecting squares attacked by a pawn
Reusing the method of detecting squares attacked by a pawn, for the promotion! Fits nice.