What secondary pest is attracted to basil due to conditions related to its care rather than its scent?

Answer

Fungus gnats

Fungus gnats are drawn not to the basil's scent, but to the conditions the plant thrives in, specifically moist soil, which creates a perfect breeding ground for their larvae.

What secondary pest is attracted to basil due to conditions related to its care rather than its scent?
plantrepellentHerbbasilFly