X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fsearch.cpp;h=f26ab959ba27ee829c9c07c9c4069b9b3a0a57ba;hb=5935daf8a5b6925a6af2084f87e3831b3bb17dac;hp=115867873748a0f6a958a84f2945fe8020cc5496;hpb=2d06d659c0321ddfcf0781327e5175df0b0ff616;p=stockfish diff --git a/src/search.cpp b/src/search.cpp index 11586787..f26ab959 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -984,7 +984,8 @@ moves_loop: // When in check, search starts from here if (!pos.see_ge(move, Value(-29 * lmrDepth * lmrDepth))) continue; } - else if (!pos.see_ge(move, -PawnValueEg * (depth / ONE_PLY))) // (~20 Elo) + else if ((!givesCheck || !(pos.blockers_for_king(~us) & from_sq(move))) + && !pos.see_ge(move, -PawnValueEg * (depth / ONE_PLY))) // (~20 Elo) continue; }