X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fsearch.cpp;h=bafc374ba29993ab05b62c8ec95729990a7fbbb8;hb=b6d11028bbb5e428cdbd709ba46d8b14bab17c88;hp=36e73a09cd8f1a2970edc9afdd405506da4b0baf;hpb=aba906b734e03f90c7f32587cc845c927483aac8;p=stockfish diff --git a/src/search.cpp b/src/search.cpp index 36e73a09..bafc374b 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -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(improving, depth, moveCount);