For example, the T-series Tactical Droid Upgrade Card provides a Ranged weapon and has the Sidearm: Ranged keyword. The miniature added by that upgrade can only use the weapon on the T-series Tactical Droid upgrade during a Ranged attack. That miniature may still use any available Melee weapon, such as the Melee weapon on the B1-Battle Droids Unit Card, during a Melee attack.