Why can’t pawn calture Q here?

Sort:
Avatar of blueshins
[Event "?"]
[Site "Chess.com iPhone"]
[Date "????.??.??"]
[Round "?"]
[White "?"]
[Black "?"]
[Result "*"]
[FEN "RNBKQB1R/PP3PPP/2P5/3P2qN/3Ppb2/5p2/ppp3pp/rn1k1bnr w - - 0 1"]

1. Be7 Qxd5+ 2. Nd7 {*}
Avatar of Martin_Stahl
blueshins wrote:
[Event "?"]
[Site "Chess.com iPhone"]
[Date "????.??.??"]
[Round "?"]
[White "?"]
[Black "?"]
[Result "*"]
[FEN "RNBKQB1R/PP3PPP/2P5/3P2qN/3Ppb2/5p2/ppp3pp/rn1k1bnr w - - 0 1"]
1. Be7 Qxd5+ 2. Nd7 {*}

That position is a custom one and the white pawns are moving up the board. the c pawn can't capture as it is moving towards the 8th rank.