For example, the Electrostaff Guard Upgrade Card provides a melee weapon and has the Sidearm: Melee keyword. The miniature added by that upgrade can only use the weapon on the Electrostaff Guard upgrade during a melee attack. That miniature may still use any available Ranged weapon, such as the Ranged weapon on the Imperial Royal Guard Unit Card, during a Ranged attack.