I'm playing a fighter who has taken the crossbow expert feat which allows me to not have disadvantage within five feat of an opponent. Do I still need to be using a melee attack to gain advantage from flanking?