Better dscovery check condition in generate_pawn_checks()