]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Less pruning in qsearch
[stockfish] / src / search.cpp
index b79fa6beaf894a5c9b15c7ced60ed14492aeabc4..0d823c8e02425d1cf617d7a7e1939490d4c4b600 100644 (file)
@@ -1564,7 +1564,9 @@ moves_loop: // When in check, search starts from here
       }
 
       // Do not search moves with negative SEE values
-      if (!ss->inCheck && !pos.see_ge(move))
+      if (   !ss->inCheck
+          && !(givesCheck && pos.is_discovery_check_on_king(~pos.side_to_move(), move))
+          && !pos.see_ge(move))
           continue;
 
       // Speculative prefetch as early as possible