- mlist = generate_promotions<Us, Type, TDELTA_NE>(pos, mlist, pawns, enemyPieces);
- mlist = generate_pawn_captures<Type, TDELTA_NE>(mlist, pawns, enemyPieces);
- mlist = generate_promotions<Us, Type, TDELTA_NW>(pos, mlist, pawns, enemyPieces);
- mlist = generate_pawn_captures<Type, TDELTA_NW>(mlist, pawns, enemyPieces);
+ if (Type == EVASION)
+ {
+ emptySquares &= target; // Only blocking squares
+ enemyPieces &= target; // Capture only the checker piece