]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
LMR for captures not cracking alpha
[stockfish] / src / search.cpp
index 36e73a09cd8f1a2970edc9afdd405506da4b0baf..bafc374ba29993ab05b62c8ec95729990a7fbbb8 100644 (file)
@@ -1008,7 +1008,9 @@ moves_loop: // When in check, search starts from here
       // re-searched at full depth.
       if (    depth >= 3 * ONE_PLY
           &&  moveCount > 1
-          && (!captureOrPromotion || moveCountPruning))
+          && (  !captureOrPromotion
+              || moveCountPruning
+              || ss->staticEval + PieceValue[EG][pos.captured_piece()] <= alpha))
       {
           Depth r = reduction<PvNode>(improving, depth, moveCount);