Fix check extension for drop variants
authorFabian Fichter <ianfab@users.noreply.github.com>
Tue, 30 Apr 2019 20:59:38 +0000 (22:59 +0200)
committerFabian Fichter <ianfab@users.noreply.github.com>
Tue, 30 Apr 2019 20:59:38 +0000 (22:59 +0200)
src/search.cpp

index 48921e3..1de3201 100644 (file)
@@ -947,7 +947,7 @@ moves_loop: // When in check, search starts from here
 
       // Check extension (~2 Elo)
       else if (    givesCheck
-               && (pos.blockers_for_king(~us) & from_sq(move) || pos.see_ge(move)))
+               && ((type_of(move) != DROP && (pos.blockers_for_king(~us) & from_sq(move))) || pos.see_ge(move)))
           extension = ONE_PLY;
       else if (    pos.must_capture() // Capture extension (all moves are captures)
                &&  pos.capture(move)