diff --git a/src/evaluate.c b/src/evaluate.c index e2360d1b..38701e02 100644 --- a/src/evaluate.c +++ b/src/evaluate.c @@ -449,7 +449,7 @@ INLINE int EvalThreats(const Position *pos, const EvalInfo *ei, const Color colo TraceCount(PushThreat); // Threats by minor pieces - Bitboard targets = theirNonPawns & ~pieceBB(KING); + Bitboard targets = theirNonPawns & ~pieceBB(KING) & ~ei->attackedBy[!color][ALL]; threats = targets & (ei->attackedBy[color][KNIGHT] | ei->attackedBy[color][BISHOP]); while (threats) { Square sq = PopLsb(&threats);