The ranged_weapon(item) function can't distinguish between muscle and mysticality weapons. This came up when my own maximize.ash script tried to equip a chefstaff and a sword of static at the same time. A myst_weapon(item) function would probably be an easier way to solve the problem, though.