They could just let the game have two different ranged attack modes. Keep the old mode for manual ranged attacks, make the auto-attack mode an entirely new attack mode available when on ranger or subbing ranger. Just don't reuse any of the existing code for ranged attacks and put this in addition to that.